standard-version
standard-version copied to clipboard
npm run release -- --first-release, what does -- mean?
npm run release -- --first-release
What does -- mean here?
I just did this.. It will print the first log without bumping your given version in package.json
What does
--
mean here?
It is how you tell the npm
command to pass all subsequent arguments script you're running, i.e. standard-version. Otherwise the --first-release
flag would be interpreted by npm itself rather than being passed along to standard-version.
https://docs.npmjs.com/cli/v7/commands/npm-run-script