Files
telemetry-client-js/tsconfig.cjs.json
Jason Woltje bf001813b8
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: add CJS build for NestJS CommonJS compatibility
NestJS compiles to CommonJS, but the package only exported ESM.
Node throws ERR_PACKAGE_PATH_NOT_EXPORTED when CJS code requires
an ESM-only package. Added dual ESM/CJS build with proper exports
conditions.

- ESM output in dist/esm/, CJS output in dist/cjs/
- package.json exports now includes import, require, and default
- Bumped to 0.1.1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 15:07:23 -06:00

10 lines
212 B
JSON

{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "node",
"outDir": "./dist/cjs"
},
"exclude": ["node_modules", "dist", "tests", "**/*.test.ts"]
}