Skip to content

fix: resolveModuleDirectory with exports fields#27

Merged
imbrian merged 18 commits intokrakenjs:mainfrom
imbrian:feature/exports-fields
May 14, 2025
Merged

fix: resolveModuleDirectory with exports fields#27
imbrian merged 18 commits intokrakenjs:mainfrom
imbrian:feature/exports-fields

Conversation

@imbrian
Copy link
Contributor

@imbrian imbrian commented May 9, 2025

resolveModuleDirectory is unable to resolve packages with exports fields that don't include package.json as an entry-point, because it attempts require.resolve(${name}/package.json). adding a second step to attempt to resolve just the module name, then step up the tree from the resolved path to find the package's manifest.

@imbrian imbrian requested review from gregjopa and wsbrunson May 9, 2025 14:54
Copy link
Member

@wsbrunson wsbrunson left a comment

Choose a reason for hiding this comment

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

i vibe it

@imbrian imbrian requested a review from ravishekhar May 9, 2025 16:10
@imbrian imbrian marked this pull request as ready for review May 14, 2025 15:10
@imbrian imbrian force-pushed the feature/exports-fields branch from 36d661b to d75b3d1 Compare May 14, 2025 16:39
@imbrian imbrian merged commit a54b37e into krakenjs:main May 14, 2025
1 check passed
@imbrian imbrian deleted the feature/exports-fields branch May 14, 2025 16:45
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.

2 participants

Comments