Skip to content

Instantly share code, notes, and snippets.

@klappradla
Created May 14, 2020 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klappradla/084bed40b1e8e7fc89cd3c0eaa157be9 to your computer and use it in GitHub Desktop.
Save klappradla/084bed40b1e8e7fc89cd3c0eaa157be9 to your computer and use it in GitHub Desktop.
Minimal example to explore custom versions problem with np
#!/bin/sh
set -o errexit
set -o nounset
# Create directory
mkdir example && cd example
# Initialize Git repository
git init && git commit --allow-empty -m "init commit"
# Create bare bones `yarn` project with `np`
yarn init -y && yarn add -D np
# Commit everything (for simplicity)
git add --all && git commit -m "all"
# Run `np` and select `Other (specify)` for the version
yarn np --any-branch --no-tests --no-cleanup --no-release-draft --no-publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment