![]() Placing a standard-version stanza in your package.json (assuming.You can configure standard-version either by: This method is especially useful when using standard-version in non-JavaScript projects. Using npx you can use standard-version without having to keep a package.json file by running: npx standard-version. Using npxĪs of npx is installed alongside npm. This has the benefit of allowing you to use standard-version on any repo/package without adding a dev dependency to each one. Now you can use standard-version in place of npm version. That said, if you find your self asking How can I use standard-version for additional metadata files, languages or version files? – these configuration options will help! Installing standard-version As a local npm run script because of this, for the majority of projects you might never need to interact with these options. updaters – Simple modules used for reading packageFiles and writing to bumpFiles.īy default, standard-version assumes you're working in a NodeJS based project.Examples: package-lock.json, npm-shrinkwrap.json.bumpFiles – User-defined files where versions should be "bumped", but not explicitly read from.In most cases (including the default), packageFiles are a subset of bumpFiles.packageFiles – User-defined files where versions can be read from and be "bumped".Standard-version uses a few key concepts for handling version bumping in your project. Creates a new tag with the new version number. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |