Skip to content

implement aliases for npm lock files#1689

Open
dterrybd wants to merge 1 commit intodev/dterry/IDETECT-4965-npm-alias-featurefrom
dev/dterry/IDETECT-4965-npm-shrink
Open

implement aliases for npm lock files#1689
dterrybd wants to merge 1 commit intodev/dterry/IDETECT-4965-npm-alias-featurefrom
dev/dterry/IDETECT-4965-npm-shrink

Conversation

@dterrybd
Copy link
Contributor

These changes build upon the CLI and package JSON npm alias changes. They handle the shrinkwrap and lock file Detectors.

Thre is a bit of refactoring so that a common NpmAliasParser utility can
- Detects if a package name is an alias (format: "npm:actual-package@version")
- Extracts the real package name from alias syntax
This leverages the alias mapping built by previous CLI and package JSON detectors on this feature branch.
This mapping is passed through the lock file graph transformer to correctly resolve aliased packages when building the dependency graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant