1.4.2 • Published 1 day ago

@rushstack/lockfile-explorer v1.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 day ago

@rushstack/lockfile-explorer

Rush Lockfile Explorer helps you investigate and solve version conflicts when working in a monorepo that uses the PNPM package manager. It's designed for the Rush build orchestrator, but you can also use it to analyze a standalone PNPM workspace without Rush.

Lockfile Explorer helps with problems such as:

  • Understanding why multiple versions of an NPM package are appearing in your node_modules folder
  • Tracing dependencies to determine which project caused an NPM package to be installed
  • Finding and eliminating "doppelgangers" (multiple installations of the same version of the same package)
  • Troubleshooting problems involving peer dependencies

This project is a new idea whose design is still evolving. Please provide feedback by creating a GitHub issue or posting in the Rush Stack Zulip chat room. Thank you!

Usage

Here's how to invoke the Rush Lockfile Explorer tool:

# Install the NPM package globally.
#
# (You could substitute "pnpm" or "yarn" instead of "npm" here.  To avoid confusing
# duplicate installs, always use the same tool for global installations!)
npm install -g @rushstack/lockfile-explorer

# Go to your monorepo folder
cd my-rush-repo

# Run "rush install" to ensure common/temp/node_modules is up to date.
# (If your monorepo is using PNPM without Rush, substitute "pnpm install" for this step.)
rush install

# Launch the Lockfile Explorer command line interface (CLI).
# It expects to find a Rush/PNPM workspace in your shell's current working directory.
# As a shorthand, the "lfx" alias can be used here instead of "lockfile-explorer".
lockfile-explorer

The CLI will start a Node.js service on http://localhost/ and launch your default web browser:

Lockfile Explorer main window

How it works

The web app will expect to find a Rush/PNPM workspace in the current working directory where the lockfile-explorer command was invoked. It will read files such as:

  • common/config/rush/pnpm-lock.yaml - the PNPM lockfile for your monorepo
  • common/config/rush/.pnpmfile.cjs - which transforms package.json files during installation
  • The package.json files for your local workspace projects
  • The package.json files for external packages installed in the node_modules folders.

Links

Rush Lockfile Explorer is part of the Rush Stack family of projects.

1.4.2

1 day ago

1.4.1

4 days ago

1.4.0

10 days ago

1.3.1

30 days ago

1.3.0

1 month ago

1.2.39

2 months ago

1.2.38

2 months ago

1.2.37

2 months ago

1.2.36

2 months ago

1.2.35

2 months ago

1.2.34

2 months ago

1.2.33

2 months ago

1.2.32

2 months ago

1.2.30

3 months ago

1.2.31

3 months ago

1.2.28

3 months ago

1.2.29

3 months ago

1.2.27

3 months ago

1.2.26

3 months ago

1.2.25

3 months ago

1.2.24

3 months ago

1.2.23

3 months ago

1.2.22

3 months ago

1.2.21

3 months ago

1.2.20

4 months ago

1.2.18

4 months ago

1.2.19

4 months ago

1.2.17

4 months ago

1.2.16

4 months ago

1.2.15

5 months ago

1.2.14

5 months ago

1.2.13

5 months ago

1.2.0

8 months ago

1.2.8

7 months ago

1.2.7

7 months ago

1.2.6

8 months ago

1.2.5

8 months ago

1.2.4

8 months ago

1.2.3

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.2.12

6 months ago

1.0.33

10 months ago

1.0.32

10 months ago

1.2.10

6 months ago

1.2.11

6 months ago

1.0.37

10 months ago

1.0.36

10 months ago

1.0.35

10 months ago

1.0.34

10 months ago

1.1.0

8 months ago

1.0.39

10 months ago

1.0.38

10 months ago

1.0.40

10 months ago

1.0.43

9 months ago

1.0.42

9 months ago

1.0.41

10 months ago

1.2.9

7 months ago

1.0.19

11 months ago

1.0.18

11 months ago

1.0.17

12 months ago

1.0.16

12 months ago

1.0.22

11 months ago

1.0.21

11 months ago

1.0.20

11 months ago

1.0.26

11 months ago

1.0.25

11 months ago

1.0.24

11 months ago

1.0.23

11 months ago

1.0.29

11 months ago

1.0.28

11 months ago

1.0.27

11 months ago

1.0.31

11 months ago

1.0.30

11 months ago

1.0.15

12 months ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.4

1 year ago

0.2.2

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago