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): require of pkg json imports was broken #22821

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Mar 9, 2024

We fixed pkg json imports for esm packages, but it looks like it was still broken in CJS.

Discovered in #22811

Closes #21502

@@ -575,32 +568,35 @@ where
#[string]
pub fn op_require_package_imports_resolve<P>(
Copy link
Member Author

Choose a reason for hiding this comment

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

Needed to resolve the closest package.json (instead of the just one in the parent folder) and convert the URL to a path before returning.

@dsherret dsherret merged commit 5d3d4eb into denoland:main Mar 9, 2024
17 checks passed
@dsherret dsherret deleted the fix_node_require_imports branch March 9, 2024 15:21
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.

Can't use Clerk's Node SDK from NPM
2 participants