npm-replace-versions

0.2.0 • Public • Published

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

option default detail
--root process.cwd() Change where to start looking
--files **/package.json Glob target file
--ignore node_modules Glob ignore file
--deps undefined Replace dependencies (ex: --deps packageA,packageB)

License

  • MIT

Credit

Package Sidebar

Install

npm i npm-replace-versions

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

9.68 kB

Total Files

5

Last publish

Collaborators

  • qrac