2
2
"name" : " node-csfd-api" ,
3
3
"version" : " 2.14.0" ,
4
4
"description" : " ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)" ,
5
- "main" : " index.js" ,
6
5
"author" : " BART! <bart@bartweb.cz>" ,
7
6
"scripts" : {
8
7
"start" : " tsc -w" ,
9
8
"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" ,
11
10
"barrels" : " barrelsby --delete -c barrels.json" ,
12
11
"postbuild" : " npm-prepare-dist -s postinstall -s prepare && yarn fix-paths" ,
13
12
"tsc" : " tsc" ,
14
13
"demo" : " tsx demo" ,
15
14
"lint" : " eslint ./src/**/**/* --fix" ,
16
15
"test" : " vitest" ,
17
16
"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'\" " ,
19
18
"publish:next" : " yarn && yarn build && yarn test:coverage && cd dist && npm publish --tag next" ,
20
19
"postversion" : " git push && git push --follow-tags" ,
21
20
"release:beta" : " npm version preminor --preid=beta -m \" chore(update): prelease %s β\" " ,
88
87
"license" : " MIT" ,
89
88
"lint-staged" : {
90
89
"*.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
+ }
91
105
}
92
- }
106
+ }
0 commit comments