Skip to content

fix(exports): expose ./package.json in the exports map - #17

Merged
Shinrai merged 1 commit into
nextfrom
fix/exports-package-json-v2
Aug 9, 2026
Merged

fix(exports): expose ./package.json in the exports map#17
Shinrai merged 1 commit into
nextfrom
fix/exports-package-json-v2

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(exports): expose ./package.json in the exports map (0201705)

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

Node's exports map is a strict allowlist: with only "." and "./main"
declared, `require.resolve("@cldmv/uuid/package.json")` (and any tool that
locates a package by resolving its package.json) throws
ERR_PACKAGE_PATH_NOT_EXPORTED. This broke @cldmv/rummage's web build.

Add the conventional `"./package.json": "./package.json"` entry so the
manifest is resolvable by name, and a regression test that asserts both the
exports entry and real Node self-resolution.

Fixes #6
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch area: tests Touches test files, fixtures, or test infrastructure type: dependencies Relates to dependency updates, version bumps, or package management labels Aug 9, 2026
@Shinrai

Shinrai commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Resolves #6 — closed when this ships to the default branch.

@Shinrai
Shinrai merged commit 5a48b5a into next Aug 9, 2026
24 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/exports-package-json-v2 branch August 9, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Touches test files, fixtures, or test infrastructure ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: dependencies Relates to dependency updates, version bumps, or package management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant