GitXplorerGitXplorer
a

npm-upgrade-monorepo

public
7 stars
0 forks
11 issues

Commits

List of commits on branch master.
Unverified
4c780505030f555c589806f3bcf344f524b58772

chore(deps): update dependency prettier to v3

rrenovate[bot] committed 2 years ago
Unverified
a5c84a497cefd69ded1d7193812388d84152cc31

chore: deps revision

aantongolub committed 2 years ago
Unverified
a72f4b53083151bb24e641fed9408efa98329b3a

chore(release): 1.2.6 [skip ci]

aantongolub committed 2 years ago
Unverified
eb5d63abbd29fc61cf2e092547ebe4e35c11333d

ci: enable provenance

aantongolub committed 2 years ago
Unverified
44159f8c785d3fa470d0156153e550be40aec7f0

ci: fix release

aantongolub committed 2 years ago
Unverified
e175c9ed5425606483e0b10403a3fc8b7ef4b7a8

ci: add nodejs v20 to test matrix

aantongolub committed 2 years ago

README

The README file for this repository.

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