Manage multiple package.json
files, such as packages/*/package.json
in Lerna Monorepos.
npm install --global syncpack
Usage: syncpack [options] [command]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
fix-mismatches set dependencies used with different versions to the same version
format sort and shorten properties according to a convention
list list every dependency used in your packages
list-mismatches list every dependency used with different versions in your packages
set-semver-ranges set semver ranges to the given format
help [cmd] display help for [cmd]
Set dependencies used with different versions to the same version.
Usage: syncpack fix-mismatches [options]
Options:
-s, --source [pattern] glob pattern for package.json files to read from
-h, --help output usage information
Sort and shorten properties according to a convention.
Usage: syncpack format [options]
Options:
-s, --source [pattern] glob pattern for package.json files to read from
-h, --help output usage information
List every dependency used in your packages.
Usage: syncpack list [options]
Options:
-s, --source [pattern] glob pattern for package.json files to read from
-h, --help output usage information
List every dependency used with different versions in your packages.
Usage: syncpack list-mismatches [options]
Options:
-s, --source [pattern] glob pattern for package.json files to read from
-h, --help output usage information
Set semver ranges to the given format.
Usage: syncpack set-semver-ranges [options]
Options:
-r, --semver-range <range> <, <=, "", ~, ^, >=, >, or *. defaults to ""
-s, --source [pattern] glob pattern for package.json files to read from
-h, --help output usage information