Skip to content

implement aliases for npm lock files#1689

Merged
dterrybd merged 1 commit intodev/dterry/IDETECT-4965-npm-alias-featurefrom
dev/dterry/IDETECT-4965-npm-shrink
Mar 25, 2026
Merged

implement aliases for npm lock files#1689
dterrybd merged 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

@dterrybd dterrybd merged commit 49be371 into dev/dterry/IDETECT-4965-npm-alias-feature Mar 25, 2026
@dterrybd dterrybd deleted the dev/dterry/IDETECT-4965-npm-shrink branch March 25, 2026 18:24
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.

3 participants