File tree 3 files changed +3
-3
lines changed
projects/js-packages/number-formatters
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change
1
+ { "type" : " commonjs" }
Original file line number Diff line number Diff line change 42
42
"scripts" : {
43
43
"build" : " pnpm run clean && pnpm run build:esm && pnpm run build:cjs" ,
44
44
"build:esm" : " tsc --declarationDir dist/types --outDir dist/mjs" ,
45
- "build:cjs" : " tsc --module CommonJS --moduleResolution node10 --declaration false --outDir dist/cjs" ,
45
+ "build:cjs" : " cp package.cjs.json src/package.json && tsc --declaration false --outDir dist/cjs; rm src/package.json " ,
46
46
"clean" : " rm -rf dist" ,
47
47
"compile-ts" : " tsc --pretty" ,
48
48
"test" : " NODE_OPTIONS=--experimental-vm-modules jest" ,
Original file line number Diff line number Diff line change 3
3
"compilerOptions" : {
4
4
"typeRoots" : [ " ./node_modules/@types/" , " src/*" ],
5
5
"target" : " ES2024" ,
6
- "importHelpers" : true , // Import helpers from `tslib` instead of inlining them
7
- "customConditions" : null // CommonJS build fails when customConditions are defined and this package doesn't need them anyway
6
+ "importHelpers" : true // Import helpers from `tslib` instead of inlining them
8
7
},
9
8
"include" : [ " ./src/index.ts" ]
10
9
}
You can’t perform that action at this time.
0 commit comments