standard-version icon indicating copy to clipboard operation
standard-version copied to clipboard

npm run release -- --first-release, what does -- mean?

Open zzzgit opened this issue 3 years ago • 2 comments

npm run release -- --first-release

What does -- mean here?

zzzgit avatar Feb 23 '22 16:02 zzzgit

I just did this.. It will print the first log without bumping your given version in package.json

creativemind1 avatar Feb 28 '22 10:02 creativemind1

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

jasonmobley avatar Apr 25 '22 19:04 jasonmobley