Skip to content

feat: ship a CommonJS build alongside ESM - #4

Merged
RagedPanda merged 1 commit into
mainfrom
commonjs
Oct 24, 2026
Merged

RagedPanda merged 1 commit into
mainfrom
commonjs

Conversation

@RagedPanda

Copy link
Copy Markdown
Owner

Adds a CommonJS build in dist/cjs next to the ESM one, so require('time-sliced') works as well as import. Each build has its own type declarations, and arethetypeswrong reports no problems in any resolution mode (node10, node16 CJS and ESM, bundler).

Also switches repository in package.json to the full git URL, which npm provenance checks against the publishing repo.

@RagedPanda
RagedPanda merged commit 4093334 into main Oct 24, 2026
6 checks passed
@RagedPanda
RagedPanda deleted the commonjs branch October 24, 2026 11:33
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