GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — doc: explain fallback arrays in package exports targets by manusingh090 · Pull Request #67393 · nodejs/node Conversation
Contributor
The This adds a "Target fallback arrays" section after "Nested conditions"
The wording follows VerificationTested with a small package in
AI disclosureI used an AI coding assistant to help read the resolver code and draft the Fixes: #58600
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe "exports" field type lists `string[]`, but the packages documentation never describes how an array of targets is resolved. Document that items are tried in order, that only invalid targets and unmatched conditions are skipped, and that a missing file does not cause the next item to be tried. Fixes: nodejs#58600 Signed-off-by: Manjeet Singh <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
ljharb
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LGTM
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
jsumners-nr
approved these changes
JakobJingleheimer
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
aduh95
pushed a commit
that referenced
this pull request
The "exports" field type lists `string[]`, but the packages documentation never describes how an array of targets is resolved. Document that items are tried in order, that only invalid targets and unmatched conditions are skipped, and that a missing file does not cause the next item to be tried. Fixes: #58600 Signed-off-by: Manjeet Singh <[email protected]> PR-URL: #67393 Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
aduh95
pushed a commit
that referenced
this pull request
The "exports" field type lists `string[]`, but the packages documentation never describes how an array of targets is resolved. Document that items are tried in order, that only invalid targets and unmatched conditions are skipped, and that a missing file does not cause the next item to be tried. Fixes: #58600 Signed-off-by: Manjeet Singh <[email protected]> PR-URL: #67393 Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
gabylb
pushed a commit
to gabylb/node
that referenced
this pull request
The "exports" field type lists `string[]`, but the packages documentation never describes how an array of targets is resolved. Document that items are tried in order, that only invalid targets and unmatched conditions are skipped, and that a missing file does not cause the next item to be tried. Fixes: nodejs#58600 Signed-off-by: Manjeet Singh <[email protected]> PR-URL: nodejs#67393 Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers+1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
doc
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Missing documentation for exports alternative pathsUh oh!
There was an error while loading. Please reload this page. 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. | |||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |