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

fix(node): support wildcards in package.json imports #24794

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jul 30, 2024

Closes #24790

@dsherret dsherret changed the title fix(node): resolution issue with imports containing a wildcard fix(node): support wildcards in package.json imports Jul 30, 2024
@dsherret dsherret marked this pull request as ready for review July 30, 2024 16:39
@@ -597,7 +597,7 @@ impl<TEnv: NodeResolverEnv> NodeResolver<TEnv> {
for key in imports.keys() {
let pattern_index = key.find('*');
if let Some(pattern_index) = pattern_index {
let key_sub = &key[0..=pattern_index];
let key_sub = &key[0..pattern_index];
Copy link
Member Author

Choose a reason for hiding this comment

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

@dsherret dsherret enabled auto-merge (squash) July 30, 2024 16:57
@dsherret dsherret merged commit 7a38101 into denoland:main Jul 30, 2024
17 of 20 checks passed
@dsherret dsherret deleted the fix_imports_npm_package_wildcard branch July 30, 2024 17:48
crowlKats pushed a commit that referenced this pull request Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support wildcards in package.json imports
2 participants