File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 "test:watch" : " cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --watchAll" ,
2323 "prepare" : " is-ci || husky install" ,
2424 "build" : " npm run clean && npm run build:esm && npm run build:cjs && npm run build:declaration" ,
25- "build:esm" : " tsc --module ES2020 --outDir dist/esm" ,
26- "build:cjs" : " tsc --module commonjs --outDir dist/cjs" ,
27- "build:declaration" : " tsc --module system --declaration --emitDeclarationOnly --outFile dist/types/index.d.ts" ,
25+ "build:esm" : " tsc --module ES2020 --outDir dist/esm && echo \" { \n \\\" type \\\" : \\\" module \\\"\n } \" > ./dist/esm/package.json " ,
26+ "build:cjs" : " tsc --module commonjs --outDir dist/cjs && echo \" { \n \\\" type \\\" : \\\" commonjs \\\"\n } \" > ./dist/cjs/package.json " ,
27+ "build:declaration" : " tsc --module none --declaration --emitDeclarationOnly --outFile dist/types/index.d.ts" ,
2828 "lint" : " eslint \" src/*.ts\" " ,
2929 "clean" : " rimraf dist"
3030 },
You can’t perform that action at this time.
0 commit comments