0.2.0 • Published 4 months ago

npm-replace-versions v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

npm-replace-versions

Update and unify the version of all package.json in the project.

Installation

Install globally:

$ npm install -g npm-replace-versions

Or run with npx:

$ npx npm-replace-versions

Usage

$ rev

✔ Which is the tag of the release? › Major
✔ Major version: … 0.1.1


/package.json 0.1.0 -> 0.1.1


✔ Start overwriting?? › Yes
✔ Done
# shortcut
$ rev 0.1.1

/package.json 0.1.0 -> 0.1.1


✔ Start overwriting? › Yes
✔ Done

Options

optiondefaultdetail
--rootprocess.cwd()Change where to start looking
--files**/package.jsonGlob target file
--ignorenode_modulesGlob ignore file
--depsundefinedReplace dependencies (ex: --deps packageA,packageB)

License

  • MIT

Credit