-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install: add support for package aliases #3
Conversation
512c1d5
to
f8396dd
Compare
9327bb3
to
96634a4
Compare
db63b89
to
b09bc8c
Compare
dadbf35
to
be8274e
Compare
df5409f
to
dacc47d
Compare
48f6de2
to
ea19669
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵️♀️! Looks good!
Where we can find documentation on this? |
docs or even a comment here with an example would be nice, i'm curious what this feature is all about... |
hey, @hinell and @benmonro. you can read more about this feature in the RFC for package aliases https://github.com/npm/rfcs/blob/latest/implemented/0001-package-aliases.md |
@chee Thanks for the link. Looks like this feature doesn't work. When I attempt to use Unwrap
My platform is Windows 10 x64 |
@hinell the feature is in v6.9 of npm, you have v6.7. |
@ljharb Oh thank you! |
Documentation at https://github.com/npm/rfcs/blob/latest/implemented/0001-package-aliases.md mentions that this implementation
Are the any current plans for allowing aliasing packages in the transitive dependencies? I have a more specific question about this at https://stackoverflow.com/q/64121161/334451 |
This fixes a broken `npm i` caused by node-sass, is notoriously flakey. This requires npm v6.9.0 or greater. See npm/cli#3
Resolves: SAP/ui5-tooling#809 When shimmed packages are defined as dependency aliases in the package.json, they are being excluded from the bundlig as the packager eventually finds the real package and its path and as it's not defined in the shim, but its alias, it gets ignored. We need to provide more robust discovery in order to handle those cases: - npm/cli#3 - https://github.com/npm/rfcs/blob/main/implemented/0001-package-aliases.md
TODO
npm i
printoutsnpm ls
displaynpm outdated
andnpm update
supportignore-install-link.js
404-parent.js
00-verify-ls-ok.js
check-install-self.js
dedupe-scoped.js
do-not-remove-other-bins.js
gently-rm-linked-module.js
gently-rm-symlinked-global-dir.js
install-actions.js
install-at-sub-path-locally.js
install-contributors-count.js
install-into-likenamed-folder.js
install-report-just-installed.js
install-scoped-already-installed.js
legacy-ignore-nested-rm.js
legacy-test-package.js
link.js
ls-l-depth-0.js
ls-peer.js
ls.js
shared-linked.js
shrinkwrap-default-dev.js
spec-local-specifiers.js
symlink-cycle.js
test/network/legacy-bundled-git.js
uninstall-link-clean.js