File tree 5 files changed +35
-34
lines changed
5 files changed +35
-34
lines changed Original file line number Diff line number Diff line change 4
4
"description" : " A parser for git diff" ,
5
5
"main" : " ./build/cjs/index.js" ,
6
6
"module" : " ./build/mjs/index.js" ,
7
- "types" : " ./build/types /index.d.ts" ,
7
+ "types" : " ./build/cjs /index.d.ts" ,
8
8
"scripts" : {
9
9
"prepublish" : " yarn build" ,
10
- "build" : " rimraf build && tsc -p tsconfig.json && tsc -p tsconfig-esm.json" ,
11
- "postbuild" : " bash fixup.sh" ,
10
+ "build" : " rimraf build && tsc -p tsconfig-esm.json && tsc -p tsconfig-cjs.json && bash fixup.sh" ,
12
11
"format" : " prettier . --write" ,
13
12
"test" : " jest --coverage" ,
14
13
"prebuild" : " yarn check:all" ,
18
17
},
19
18
"exports" : {
20
19
"." : {
21
- "types" : " ./build/types/index.d.ts" ,
22
20
"import" : " ./build/mjs/index.js" ,
23
21
"require" : " ./build/cjs/index.js" ,
24
22
"default" : " ./build/mjs/index.js"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "module" : " CommonJS" ,
5
+ "outDir" : " build/cjs" ,
6
+ "declarationDir" : " build/cjs" ,
7
+ "target" : " es2022"
8
+ }
9
+ }
Original file line number Diff line number Diff line change 2
2
"extends" : " ./tsconfig.json" ,
3
3
"compilerOptions" : {
4
4
"module" : " esnext" ,
5
- "outDir" : " build/mjs"
5
+ "outDir" : " build/mjs" ,
6
+ "declarationDir" : " build/mjs" ,
7
+ "target" : " ESNext"
6
8
}
7
9
}
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ./tsconfig-base.json" ,
2
+ "exclude" : [
3
+ " src/__tests__" ,
4
+ " src/__fixtures__" ,
5
+ " build" ,
6
+ " node_modules" ,
7
+ " demo"
8
+ ],
9
+ "include" : [" src/**/*.ts" ],
3
10
"compilerOptions" : {
4
11
"module" : " CommonJS" ,
5
- "outDir" : " build/cjs" ,
6
- "moduleResolution" : " Node"
12
+ "allowSyntheticDefaultImports" : true ,
13
+ "declaration" : true ,
14
+ "declarationMap" : true ,
15
+ "inlineSources" : true ,
16
+ "esModuleInterop" : true ,
17
+ "forceConsistentCasingInFileNames" : true ,
18
+ "isolatedModules" : true ,
19
+ "moduleResolution" : " node" ,
20
+ "resolveJsonModule" : true ,
21
+ "sourceMap" : true ,
22
+ "strict" : true ,
23
+ "skipLibCheck" : true ,
24
+ "target" : " es2022"
7
25
}
8
26
}
You can’t perform that action at this time.
0 commit comments