1.2.6 • Published 12 months ago

npm-upgrade-monorepo v1.2.6

Weekly downloads
113
License
MIT
Repository
github
Last release
12 months ago

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.

CI Maintainability Test Coverage npm (tag)

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

#!/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

License

MIT

1.2.6

12 months ago

1.2.5

2 years ago

1.2.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago