-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Use resolved package name #1119
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Should fix import-js#496
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.
Can you add a test case that would have failed without this change?
Assume folder with packages is node_modules and take part of path after last node_modules
@ljharb I've added the test that would have failed without fix in |
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.
I'm a little nervous about letting node_modules
sneak into a rule proper, though to be fair no-extra-deps
is a Node-specific rule.
I'll try to come back around to this in a second pass after letting it cook in my brain for a little bit.
@arcanis i'm intending to merge this soon, does it need any changes to avoid causing berry problems? |
From the look of it it should be compatible in most cases, since we store packages inside a standalone
One caveat however: we cannot do that when people use the {
"dependencies": {
"foo": "link:./foo"
}
} You'd have |
@mieszko4 this needs to be rebased. i think that the part you'll need to update now is either |
It's been 6+ years since I created this PR. I think that we should just close this PR. In the future would be great if PRs could be closed or merged quicker :) |
@mieszko4 that's always great, but we're all unpaid volunteers here, and things take the time they take :-) I'll close it then, thanks. |
Yeah, I totally get this. I also would check it in more detail if I had time :). Anyway, no hurt feelings, no worries. |
Should fix #496