Skip to content

fix: add CommonJS require export - #11

Open
xianzuyang9-blip wants to merge 4 commits into
mozilla-ai:mainfrom
xianzuyang9-blip:codex/add-cjs-require-export
Open

fix: add CommonJS require export#11
xianzuyang9-blip wants to merge 4 commits into
mozilla-ai:mainfrom
xianzuyang9-blip:codex/add-cjs-require-export

Conversation

@xianzuyang9-blip

Copy link
Copy Markdown

Summary

  • add a CommonJS build output under dist/cjs
  • expose that output through the package exports.require condition
  • add a packaged CommonJS consumer regression test that installs the local package and verifies require("@mozilla-ai/otari")

Fixes #7.

Verification

  • npm run lint
  • npm run typecheck
  • npm run test:unit
  • npm run build
  • npm pack --dry-run

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.

ERR_PACKAGE_PATH_NOT_EXPORTED: missing CJS "require" export in package.json exports

1 participant