Skip to content

fix: ship only dist and raise the node floor to 22.12#56

Merged
ungoldman merged 2 commits into
mainfrom
dist-and-engines
Jun 14, 2026
Merged

fix: ship only dist and raise the node floor to 22.12#56
ungoldman merged 2 commits into
mainfrom
dist-and-engines

Conversation

@ungoldman

Copy link
Copy Markdown
Owner

Two user-facing packaging fixes. This is the first change release-please will release.

Changes

  • Ship only dist in the published package. The exports map exposes just the entry and the factory subpath, both resolved from dist, so the TypeScript source no longer ships. Smaller install. (README, LICENSE, and package.json are included by npm regardless.)
  • Raise the engines floor from >=22 to >=22.12.0, where require() of a synchronous ES module is unflagged — the path a CommonJS consumer uses to load this ESM-only package.

Verification

npm test, npm run coverage (100%), and npm run test:pack pass locally. npm pack --dry-run confirms the tarball is dist/* + README + LICENSE + package.json, no src.

Both are fix:, so on merge release-please opens a release PR for 3.0.2. Merging that release PR is what tags, releases, and publishes to npm via OIDC.

Drop src from the files allowlist. The exports map only exposes the
package entry and the factory subpath, both resolved from dist, so the
TypeScript source no longer needs to ship. Smaller install.
Raise the engines floor from >=22 to >=22.12.0, where require() of a
synchronous ES module is unflagged, the path a CommonJS consumer uses
to load this ESM-only package.
@ungoldman ungoldman merged commit 4904cc6 into main Jun 14, 2026
3 checks passed
@ungoldman ungoldman deleted the dist-and-engines branch June 14, 2026 01:14
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.

1 participant