Skip to content

Commit d52f42f

Browse files
committed
feat: use typescript config for node 14
1 parent d4c7005 commit d52f42f

File tree

5 files changed

+10
-21
lines changed

5 files changed

+10
-21
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"typescript"
1010
],
1111
"main": "dist/create-ts-lib-gh.js",
12-
"typings": "dist/@types/create-ts-lib-gh.d.ts",
12+
"typings": "dist/create-ts-lib-gh.d.ts",
1313
"files": [
1414
"dist",
1515
"template"

template/tsconfig.build.json

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
33
"exclude": [
4-
"node_modules",
5-
"dist",
64
"**/*.spec.ts"
75
]
86
}

template/tsconfig.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
{
22
"compilerOptions": {
3-
"moduleResolution": "node",
4-
"target": "es5",
3+
"target": "ES2020",
54
"module": "commonjs",
6-
"lib": ["es2015", "es2016", "es2017", "dom"],
5+
"lib": [
6+
"ES2020"
7+
],
78
"strict": true,
89
"sourceMap": true,
910
"declaration": true,
1011
"allowSyntheticDefaultImports": true,
1112
"experimentalDecorators": true,
1213
"emitDecoratorMetadata": true,
13-
"skipLibCheck": true,
14-
"declarationDir": "dist/@types",
1514
"outDir": "dist",
16-
"typeRoots": [
17-
"node_modules/@types"
18-
]
15+
"esModuleInterop": true,
1916
},
2017
"include": [
2118
"src"

tsconfig.build.json

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
33
"exclude": [
4-
"node_modules",
5-
"dist",
64
"**/*.spec.ts"
75
]
86
}

tsconfig.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,20 @@
33
"files": true
44
},
55
"compilerOptions": {
6-
"moduleResolution": "node",
7-
"target": "es5",
6+
"target": "ES2020",
87
"module": "commonjs",
9-
"lib": ["es2015", "es2016", "es2017"],
8+
"lib": [
9+
"ES2020"
10+
],
1011
"strict": true,
1112
"sourceMap": true,
1213
"declaration": true,
1314
"allowSyntheticDefaultImports": true,
1415
"experimentalDecorators": true,
1516
"emitDecoratorMetadata": true,
1617
"skipLibCheck": true,
17-
"declarationDir": "dist/@types",
1818
"outDir": "dist",
1919
"esModuleInterop": true,
20-
"typeRoots": [
21-
"node_modules/@types",
22-
"src/types",
23-
]
2420
},
2521
"include": [
2622
"src"

0 commit comments

Comments
 (0)