File tree 3 files changed +17
-4
lines changed
3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
node_modules
4
4
5
+ index.cjs
6
+
5
7
index.js
Original file line number Diff line number Diff line change 2
2
"name" : " pagino" ,
3
3
"version" : " 1.0.0" ,
4
4
"description" : " This project aims to handle pagination core object in Javascript independent of UI" ,
5
- "main" : " index.js" ,
5
+ "main" : " index.cjs" ,
6
+ "type" : " module" ,
7
+ "module" : " index.js" ,
8
+ "exports" : {
9
+ "./package.json" : " ./package.json" ,
10
+ "." : {
11
+ "require" : " ./index.cjs" ,
12
+ "import" : " ./index.js"
13
+ }
14
+ },
15
+ "types" : " index.d.ts" ,
6
16
"scripts" : {
7
- "build" : " tsc" ,
17
+ "build-commonjs" : " tsc --target ES5 && mv ./index.js ./index.cjs" ,
18
+ "build-esmodule" : " tsc --target ES2020" ,
19
+ "build" : " build-commonjs && build-esmodule" ,
8
20
"test" : " jest" ,
9
21
"minify" : " minify ./index.js --out-file ./index.js --mangle.keepClassName" ,
10
22
"format" : " prettier ./src --write --ignore-unknown" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"exclude" : [" node_modules" , " src/**/*.test.ts" ],
3
3
"compilerOptions" : {
4
- "target" : " ES5" ,
5
4
"moduleResolution" : " Node" ,
6
5
"removeComments" : true ,
7
6
"baseUrl" : " ./src" ,
8
- "outDir" : " ./" ,
7
+ "outDir" : " ./"
9
8
}
10
9
}
You can’t perform that action at this time.
0 commit comments