npm-upgrade-monorepo
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.5 • Public • Published

    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 David Maintainability Test Coverage npm (tag)

    Install

    npm i -g npm-upgrage-monorepo

    Usage

    API inherits npm-upgrade CLI contract.

    npm-upgrage-monorepo [...args]

    --workspaces / -w

    Additional param to override package.json workspaces field value.

    npm-upgrage-monorepo -w packages/*
    npm-upgrage-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

    Install

    npm i npm-upgrade-monorepo

    DownloadsWeekly Downloads

    10

    Version

    1.1.5

    License

    MIT

    Unpacked Size

    43.9 kB

    Total Files

    32

    Last publish

    Collaborators

    • antongolub