a script to find and fix out-of-sync dependencies in package.json files
|
|
1 anno fa | |
|---|---|---|
| src | 1 anno fa | |
| .gitignore | 1 anno fa | |
| .nvmrc | 1 anno fa | |
| README.md | 1 anno fa | |
| package-lock.json | 1 anno fa | |
| package.json | 1 anno fa |
A script to find and fix out-of-sync dependencies in package.json files.
Install and run from your project folder, globally, or use npm run build to compile a (massive) single executable and stick it
in your path.
script.js [options] [glob patterns]
sync-package-json-deps.js -w --tab-width 4 './packages/*/package.json' 'package.json'
tabWidth: Tab width in spaces, passed to JSON.stringify for output.
flags: -tw,--tab-width
number of arguments: 1
default: 2
write: Write changes to files.
flags: -w,--write
number of arguments: 0
default: false
help: Prints the help message, options and usage info then exits.
flags: -h,--help
number of arguments: 0
default: false