Commit 6bf7e5c
feat: switch to rollup for dual ESM/CJS output
- Replace tsc with rollup to produce both .js (ESM) and .cjs (CJS) bundles
- Add "type": "module" and "exports" field to package.json
- Set "main" to lib/index.cjs for CJS backward compatibility
- Add "module" field for bundlers
- Update tsconfig: target ES2015, module ES2015, moduleResolution bundler
- Remove importHelpers (no runtime tslib dependency)
- Move tslib to devDependencies (required by @rollup/plugin-typescript)
- Remove tsconfig.test.json (unified tsconfig)
- Update devDependencies to latest versions
- Remove mocha, ts-mocha, @types/chai, @types/mocha from dependencies
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 960f6ad commit 6bf7e5c
4 files changed
Lines changed: 1010 additions & 1789 deletions
0 commit comments