Skip to content

Commit 71a6eb2

Browse files
improve typescript configuration (#2470)
* improve typescript configuration * Update tsconfig.json --------- Co-authored-by: Pascal Baljet <[email protected]>
1 parent 277bf42 commit 71a6eb2

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545
},
4646
"scripts": {
47-
"build": "pnpm clean && ./build.js && tsc --emitDeclarationOnly",
47+
"build": "pnpm clean && ./build.js && tsc",
4848
"build:with-deps": "./build.js --with-deps",
4949
"clean": "rm -rf types && rm -rf dist",
5050
"dev": "./build.js --watch",
@@ -67,4 +67,4 @@
6767
"esbuild-node-externals": "^1.6.0",
6868
"typescript": "^4.9.4"
6969
}
70-
}
70+
}

packages/core/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
"declaration": true,
1111
"declarationDir": "types",
12+
"emitDeclarationOnly": true,
1213

1314
"module": "ES2020",
1415
"moduleResolution": "Node",
@@ -23,6 +24,5 @@
2324
"typeRoots": ["./node_modules/@types"],
2425
"strict": true,
2526
"skipLibCheck": true
26-
},
27-
"exclude": ["tests"]
27+
}
2828
}

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
}
4444
},
4545
"scripts": {
46-
"build": "pnpm clean && ./build.js && tsc --emitDeclarationOnly",
46+
"build": "pnpm clean && ./build.js && tsc",
4747
"build:with-deps": "./build.js --with-deps",
4848
"clean": "rm -rf types && rm -rf dist",
4949
"dev": "./build.js --watch",
@@ -68,4 +68,4 @@
6868
"@types/lodash-es": "^4.17.12",
6969
"lodash-es": "^4.17.21"
7070
}
71-
}
71+
}

packages/react/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
"declaration": true,
1111
"declarationDir": "types",
12+
"emitDeclarationOnly": true,
1213

1314
"module": "ES2020",
1415
"moduleResolution": "Node",

packages/vue3/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343
},
4444
"scripts": {
45-
"build": "pnpm clean && ./build.js && tsc --emitDeclarationOnly --skipLibCheck",
45+
"build": "pnpm clean && ./build.js && tsc",
4646
"build:with-deps": "./build.js --with-deps",
4747
"clean": "rm -rf types && rm -rf dist",
4848
"dev": "./build.js --watch",
@@ -66,4 +66,4 @@
6666
"@types/lodash-es": "^4.17.12",
6767
"lodash-es": "^4.17.21"
6868
}
69-
}
69+
}

packages/vue3/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010

1111
"declaration": true,
1212
"declarationDir": "types",
13+
"emitDeclarationOnly": true,
1314

1415
"module": "ES2020",
1516
"moduleResolution": "Node",
1617
"resolveJsonModule": true,
1718
"allowSyntheticDefaultImports": true,
19+
"skipLibCheck": true,
1820

1921
"noImplicitThis": true,
2022
"noUnusedLocals": true,

0 commit comments

Comments
 (0)