0.2.2 • Published 4 years ago

pkg-impact v0.2.2

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

pkg-impact

Know which local packages need to be upgraded.

Motivation

When you have dozens of interdependent Node.js projects, upgrading one of them will cause a chain reaction. It is very difficult to know which packages need to be upgraded, especially when your packages are published in different registries.

How does it work?

pkg-impact assumes that all your Node.js projects have one or more common root directories. pkg-impact traverses all the directories under the root directories, finds all the directories containing the package.json file, and excludes the directories under node_modules, .git. After pkg-impact collects these package.json files, it will print a breadth first list showing the items that need to be upgraded.

How about show a dependency graph?

I tried, but I found it is completely unusable for me, because several of my core packages have dozens of edges, the dependency graph is not clearer than a list.

Why not use Renovate/Depfu/Dependabot?

These services are not available for local/private/internal packages, and they are noisy.

Install

npm install -g pkg-impact
# or
yarn global add pkg-impact

Install from source

yarn install
yarn build
yarn global add "file:$(pwd)"

Usage

Usage: pkg-impact [options] <targetPackage> <roots...>

Know which local packages need to be upgraded

Options:
  -V, --version         output the version number
  --max-depth <integer> max depth of dependency search
  --include-dev         check devDependencies
  -h, --help            display help for command
0.2.1

4 years ago

0.2.0

4 years ago

0.1.17

4 years ago

0.2.2

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago