-
get future version from current version
"future-version": "semver --increment $(node -e \"console.log(JSON.parse(process.env.npm_config_argv).original[1] || 'minor');\") $npm_package_version",
-
run node in shell
node -e "console.log('rimmer')"
https://nodejs.dev/en/learn/run-nodejs-scripts-from-the-command-line -
access npm args on run https://stackoverflow.com/questions/56532492/get-version-level-from-npm-script
Created
August 31, 2022 11:59
-
-
Save literat/99ee10bec34ff7ba7e0a03d0e1fb0705 to your computer and use it in GitHub Desktop.
Parse npm args in scripts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment