Skip to content
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

fix(npm): resolve bare specifiers to package.json workspace members #88

Conversation

dsherret
Copy link
Member

@@ -381,6 +387,28 @@ impl WorkspaceResolver {
}
}
}

// 3. Finally try to resolve to a workspace npm package.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think this should be limited to the workspace root folder.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@dsherret dsherret merged commit d2deff6 into denoland:main Jul 16, 2024
3 checks passed
@dsherret dsherret deleted the feat_pkg_json_resolve_workspace_members_bare_specifiers branch July 16, 2024 22:37
dsherret added a commit to denoland/deno that referenced this pull request Jul 17, 2024
…a workspace (#24611)

This makes bare specifiers for npm packages work when inside a
workspace, which emulates the same behaviour as when there's a
node_modules directory. The bare specifier can be overwritten by
specifying an import map entry or package.json dependency entry.

* denoland/deno_config#88

Closes #24605
bartlomieju pushed a commit to denoland/deno that referenced this pull request Jul 22, 2024
…a workspace (#24611)

This makes bare specifiers for npm packages work when inside a
workspace, which emulates the same behaviour as when there's a
node_modules directory. The bare specifier can be overwritten by
specifying an import map entry or package.json dependency entry.

* denoland/deno_config#88

Closes #24605
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants