Skip to content

Commit 6533c38

Browse files
committed
build: Update tsconfig
1 parent 340a592 commit 6533c38

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

tsconfig.base.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
/* dirs */
55
"rootDir": "./src",
6-
"declarationDir": "./lib/types",
76
"types": ["node"],
87
/* module config */
98
"target": "es2020",
@@ -15,7 +14,6 @@
1514
"allowJs": true,
1615
"allowSyntheticDefaultImports": true,
1716
"noFallthroughCasesInSwitch": true,
18-
"declaration": true,
1917
"sourceMap": true,
2018
"noImplicitReturns": true,
2119
"noImplicitOverride": true,

tsconfig.cjs.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.json",
33
"compilerOptions": {
4+
"module": "ESNext",
5+
"moduleResolution": "bundler",
46
"outDir": "./lib/cjs"
57
}
68
}

tsconfig.esm.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "./lib/esm"
4+
"module": "ESNext",
5+
"moduleResolution": "bundler",
6+
"outDir": "./lib/esm",
7+
"declarationDir": "./lib/types",
8+
"declaration": true
59
}
610
}

tsconfig.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
4-
"module": "ESNext",
5-
"moduleResolution": "node",
6-
"allowJs": true,
7-
"esModuleInterop": true,
3+
/* dirs */
4+
"rootDir": ".",
5+
"types": ["node"],
6+
/* module config */
7+
"target": "esnext",
8+
"lib": ["es2020", "es2022.error"],
9+
"module": "nodenext",
10+
"moduleResolution": "NodeNext",
811
"resolveJsonModule": true,
9-
"declaration": false,
12+
"esModuleInterop": true,
13+
/* behaviour options */
14+
"allowJs": true,
1015
"noEmit": true,
1116
"skipLibCheck": true,
12-
"types": ["node"],
13-
"lib": ["es2020", "es2022.error"]
17+
"strict": true
1418
},
1519
"ts-node": {
1620
"compilerOptions": {
1721
"module": "CommonJS"
1822
}
19-
}
23+
},
24+
"exclude": ["node_modules", "lib", "dist", "test"]
2025
}

0 commit comments

Comments
 (0)