module: improve error for invalid package targets#32052
Closed
MylesBorins wants to merge 9 commits intonodejs:masterfrom
Closed
module: improve error for invalid package targets#32052MylesBorins wants to merge 9 commits intonodejs:masterfrom
MylesBorins wants to merge 9 commits intonodejs:masterfrom
Conversation
057a205 to
0a23621
Compare
hybrist
reviewed
Mar 2, 2020
Contributor
hybrist
left a comment
There was a problem hiding this comment.
Woo! I think the error message doesn't match what we currently allow for exports values but overall looks good!
Member
|
LGTM pending jkrem's comment |
Contributor
Author
|
Good catch @jkrems PTAL |
GeoffreyBooth
approved these changes
Mar 3, 2020
guybedford
reviewed
Mar 3, 2020
Contributor
guybedford
left a comment
There was a problem hiding this comment.
Thanks for posting, this is huge for usability.
Would definitely be nice to see the tests covering the message if possible.
BridgeAR
approved these changes
Mar 9, 2020
3 tasks
For targets that are strings that do not start with `./` or `/` the error will now have additional information about what the programming error is. Closes: nodejs#32034
d4c8b48 to
974e6c0
Compare
Contributor
Author
|
@nodejs/modules I've updated based on all feedback. Should work for both ESM + CJS and has a test that checks the error message. |
Collaborator
ljharb
reviewed
Apr 17, 2020
Collaborator
hybrist
approved these changes
Apr 17, 2020
guybedford
reviewed
Apr 17, 2020
guybedford
approved these changes
Apr 17, 2020
Contributor
guybedford
left a comment
There was a problem hiding this comment.
Amazing thanks for driving this one through.
guybedford
reviewed
Apr 17, 2020
Co-Authored-By: Guy Bedford <guybedford@gmail.com>
Co-Authored-By: Guy Bedford <guybedford@gmail.com>
Collaborator
Member
GeoffreyBooth
left a comment
There was a problem hiding this comment.
Feel free to disregard if you disagree, I just feel like a semicolon here is better grammar than -.
Co-Authored-By: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com>
Co-Authored-By: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com>
Co-Authored-By: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com>
Co-Authored-By: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Collaborator
Collaborator
Collaborator
MylesBorins
added a commit
that referenced
this pull request
Apr 22, 2020
For targets that are strings that do not start with `./` or `/` the error will now have additional information about what the programming error is. Closes: #32034 PR-URL: #32052 Fixes: #32034 Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Signed-off-by: Myles Borins <myles.borins@gmail.com>
Contributor
Author
|
landed in 09a50d3 |
BethGriggs
pushed a commit
that referenced
this pull request
Apr 27, 2020
For targets that are strings that do not start with `./` or `/` the error will now have additional information about what the programming error is. Closes: #32034 PR-URL: #32052 Fixes: #32034 Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Signed-off-by: Myles Borins <myles.borins@gmail.com>
Merged
BridgeAR
pushed a commit
that referenced
this pull request
Apr 28, 2020
For targets that are strings that do not start with `./` or `/` the error will now have additional information about what the programming error is. Closes: #32034 PR-URL: #32052 Fixes: #32034 Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Signed-off-by: Myles Borins <myles.borins@gmail.com>
Merged
targos
pushed a commit
that referenced
this pull request
Apr 30, 2020
For targets that are strings that do not start with `./` or `/` the error will now have additional information about what the programming error is. Closes: #32034 PR-URL: #32052 Fixes: #32034 Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Signed-off-by: Myles Borins <myles.borins@gmail.com>
targos
pushed a commit
that referenced
this pull request
May 13, 2020
For targets that are strings that do not start with `./` or `/` the error will now have additional information about what the programming error is. Closes: #32034 PR-URL: #32052 Fixes: #32034 Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Signed-off-by: Myles Borins <myles.borins@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For targets that are strings that do not start with
./or/theerror will now have additional information about what the programming
error is.
Closes: #32034
PTAL @nodejs/modules