Skip to content
This repository was archived by the owner on Apr 10, 2026. It is now read-only.

feat!: switch to ESM publishing, major bump to v3#31

Merged
bencmbrook merged 2 commits intomainfrom
copilot/switch-to-publishing-esm
Apr 8, 2026
Merged

feat!: switch to ESM publishing, major bump to v3#31
bencmbrook merged 2 commits intomainfrom
copilot/switch-to-publishing-esm

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 8, 2026

Converts the package to publish native ESM and bumps to v3.0.0.

Package metadata

  • Added "type": "module", updated "main" to build/index.js
  • Added "exports" field with import and types conditions

TypeScript

  • module: commonjsNode16; moduleResolution: nodenode16
  • All relative imports updated to use explicit .js extensions (required by Node16 resolution)

Test infrastructure

  • ts-node removed
  • Test script now compiles first then runs mocha against build/tests/**/*.test.js; removes ts-node from the hot path
  • .mocharc.js.mocharc.cjs, .eslintrc.js.eslintrc.cjs (CJS config files required when "type": "module" is set)

Consumers

Downstream packages consuming this library must use import (no require()). Declaration maps and type entry point are preserved unchanged.

@bencmbrook bencmbrook merged commit 9d2fb37 into main Apr 8, 2026
9 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants