Skip to content

Conversation

@c0state
Copy link
Contributor

@c0state c0state commented Jan 7, 2026

Fixes a packaging issue in v6.0.0-beta.0 where the published package root did not contain the expected ./lib/ tree, causing Node to fail resolving the package via the exports map (MODULE_NOT_FOUND for lib/index.js).

  • Publish from repo root (remove release.publishDir)
  • Add a files allowlist to ensure lib/** is included in the tarball

This keeps the package ESM-only.

@c0state c0state changed the title chore: fix library export paths fix: fix library export paths Jan 7, 2026
]
},
"release": {
"publishDir": "lib",
Copy link
Contributor Author

@c0state c0state Jan 7, 2026

Choose a reason for hiding this comment

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

The exports above included lib, so this mismatched. Instead, just publish from root, and use the files configuration (see right hand diff) to explicitly define what is included in the published package.

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