Shows a diff of dependencies between N packages.json
Useful when migrating to yarn workspaces
npm i -g diff-packages (Or use npx)
# Use packages
diff-packages /foo/bar/package.json /path/to/comparing/node_modules
# Specify devDependencies in packages
diff-packages --dev package.json /other/package.json
# Want to see both ?
diff-packages --both package.json /other/package.json
# Want to fail on pour CI?
CI=true diff-packages --both package.json /other/package.json