File tree 5 files changed +48
-29
lines changed
5 files changed +48
-29
lines changed Original file line number Diff line number Diff line change 35
35
"test-stage2" : " env TS_NODE_COMPILER_OPTIONS='{\" experimentalDecorators\" : true }' mocha -r ts-node/register test/test.ts" ,
36
36
"test-stage3" : " env TS_NODE_COMPILER_OPTIONS='{\" experimentalDecorators\" : false }' mocha -r ts-node/register test/test.ts" ,
37
37
"build" : " npm run build:cjs && npm run build:esm" ,
38
- "build:cjs" : " ./node_modules/.bin/tsc -outDir dist/ cjs" ,
39
- "build:esm" : " ./node_modules/.bin/tsc -outDir dist/ esm -module ES6 " ,
38
+ "build:cjs" : " ./node_modules/.bin/tsc --project ./tsconfig/tsconfig. cjs.json " ,
39
+ "build:esm" : " ./node_modules/.bin/tsc --project ./tsconfig/tsconfig. esm.json " ,
40
40
"lint" : " eslint ." ,
41
41
"lint:fix" : " eslint . --fix" ,
42
42
"watch" : " ./node_modules/.bin/tsc -outDir dist/esm -module ES6 --watch"
Original file line number Diff line number Diff line change 1
1
{
2
- "compilerOptions" : {
3
- "outDir" : " ./dist" ,
4
- "baseUrl" : " ." ,
5
- "rootDir" : " ./src" ,
6
- "moduleResolution" : " node" ,
7
- "module" : " CommonJS" ,
8
- "target" : " ES6" ,
9
- "strict" : true ,
10
- "sourceMap" : true ,
11
- "lib" : [
12
- " esnext" ,
13
- " DOM"
14
- ],
15
- "allowJs" : true ,
16
- "skipLibCheck" : true ,
17
- "esModuleInterop" : true ,
18
- "isolatedModules" : true ,
19
- "emitDeclarationOnly" : false ,
20
- "experimentalDecorators" : true ,
21
- "composite" : false ,
22
- "declaration" : true ,
23
- "declarationMap" : true ,
24
- "noUnusedLocals" : false
25
- },
26
- "include" : [
27
- " ./src/**/*.ts" ,
28
- ],
2
+ "extends" :" ./tsconfig/tsconfig.json"
29
3
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "outDir" : " ../dist/cjs" ,
5
+ "module" : " CommonJS" ,
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "outDir" : " ../dist/esm" ,
5
+ "module" : " ES6" ,
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "target" : " ES6" ,
4
+ "moduleResolution" : " Node" ,
5
+ "rootDir" : " ../src" ,
6
+ "paths" : {
7
+ "@/*" : [
8
+ " ../src/*"
9
+ ]
10
+ },
11
+ "strict" : true ,
12
+ "sourceMap" : true ,
13
+ "lib" : [
14
+ " esnext" ,
15
+ " DOM"
16
+ ],
17
+ "allowJs" : true ,
18
+ "skipLibCheck" : true ,
19
+ "esModuleInterop" : true ,
20
+ "isolatedModules" : true ,
21
+ "emitDeclarationOnly" : false ,
22
+ "experimentalDecorators" : true ,
23
+ "composite" : false ,
24
+ "declaration" : true ,
25
+ "declarationMap" : true ,
26
+ "noUnusedLocals" : false
27
+ },
28
+ "files" : [
29
+ " ../src/index.ts"
30
+ ]
31
+ }
You can’t perform that action at this time.
0 commit comments