0.2.0 • Published 2 years ago
npm-replace-versions v0.2.0
npm-replace-versions
Update and unify the version of all package.json in the project.
Installation
Install globally:
$ npm install -g npm-replace-versionsOr run with npx:
$ npx npm-replace-versionsUsage
$ 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
✔ DoneOptions
| 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