0.2.2 • Published 2 years ago

pkg-impact v0.2.2

Weekly downloads
10
License
MIT
Repository
github
Last release
2 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

2 years ago

0.2.0

2 years ago

0.1.17

2 years ago

0.2.2

2 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago