npm-upgrade-monorepo
v1.2.6
Published
Apply npm-upgrade to workspaces
Downloads
42
Maintainers
Readme
npm-upgrade-monorepo
Apply npm-upgrade to monorepos. The wrapper just parses workspaces
field of package.json, and invokes npm-upgrade for each internal package dir.
Install
npm i -g npm-upgrade-monorepo
Usage
API inherits npm-upgrade
CLI contract.
npm-upgrade-monorepo [...args]
--workspaces / -w
Additional param to override package.json
workspaces
field value.
npm-upgrade-monorepo -w packages/*
npm-upgrade-monorepo -w scope1/a,scope2/b
Alternatives
yarn upgrade-interactive
- Anifacted/lerna-update-wizard
- codsen/update-versions
- Bash script
#!/bin/bash
NPM_UPGRADE="npm-upgrade"
PACKAGES=$(cat package.json | jq -r '.workspaces | join(" ")')
eval $NPM_UPGRADE
for f in $PACKAGES; do
if [ -d "$f" ]; then
cd $f
eval $NPM_UPGRADE
fi
done