22 "name" : " node-csfd-api" ,
33 "version" : " 2.14.1" ,
44 "description" : " ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)" ,
5- "main" : " index.js" ,
65 "author" :
" BART! <[email protected] >" ,
76 "scripts" : {
87 "start" : " tsc -w" ,
98 "prebuild" : " rimraf dist" ,
10- "build" : " tsc && tsc -p tsconfig- cjs.json && yarn barrels" ,
9+ "build" : " tsc && tsc -p tsconfig. cjs.json && tsc -p tsconfig.esm .json && yarn barrels" ,
1110 "barrels" : " barrelsby --delete -c barrels.json" ,
1211 "postbuild" : " npm-prepare-dist -s postinstall -s prepare && yarn fix-paths" ,
1312 "tsc" : " tsc" ,
1413 "demo" : " tsx demo" ,
1514 "lint" : " eslint ./src/**/**/* --fix" ,
1615 "test" : " vitest" ,
1716 "test:coverage" : " yarn test run --coverage" ,
18- "fix-paths" : " yarn json -I -f ./dist/package.json -e \" this.module='./esm/index.js';this.main='./cjs/index.js';this.types='./types/ index.d.ts'\" " ,
17+ "fix-paths" : " yarn json -I -f ./dist/package.json -e \" this.module='./esm/index.js';this.main='./cjs/index.js';this.types='./index.dto .d.ts'\" " ,
1918 "publish:next" : " yarn && yarn build && yarn test:coverage && cd dist && npm publish --tag next" ,
2019 "postversion" : " git push && git push --follow-tags" ,
2120 "release:beta" : " npm version preminor --preid=beta -m \" chore(update): prelease %s β\" " ,
8887 "license" : " MIT" ,
8988 "lint-staged" : {
9089 "*.ts" : " eslint --cache --fix"
90+ },
91+ "main" : " ./cjs/index.js" ,
92+ "module" : " ./esm/index.js" ,
93+ "types" : " ./index.dto.d.ts" ,
94+ "exports" : {
95+ "." : {
96+ "import" : {
97+ "types" : " ./index.dto.d.ts" ,
98+ "default" : " ./esm/index.js"
99+ },
100+ "require" : {
101+ "types" : " ./index.dto.d.ts" ,
102+ "default" : " ./cjs/index.js"
103+ }
104+ }
91105 }
92- }
106+ }
0 commit comments