Skip to content

Commit a357c19

Browse files
authored
chore: speed up typechecking (vitejs#20131)
1 parent b128b63 commit a357c19

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"postinstall": "simple-git-hooks",
2323
"format": "prettier --write --cache .",
2424
"lint": "eslint --cache .",
25-
"typecheck": "tsc -p scripts --noEmit && pnpm -r --parallel run typecheck",
25+
"typecheck": "tsc -p scripts && pnpm -r --parallel run typecheck",
2626
"test": "pnpm test-unit && pnpm test-serve && pnpm test-build",
2727
"test-serve": "vitest run -c vitest.config.e2e.ts",
2828
"test-build": "VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts",

packages/create-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"dev": "tsdown --watch",
1818
"build": "tsdown",
19-
"typecheck": "tsc --noEmit",
19+
"typecheck": "tsc",
2020
"prepublishOnly": "npm run build"
2121
},
2222
"engines": {

packages/create-vite/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
"target": "ES2023",
66
"module": "Preserve",
77
"moduleResolution": "bundler",
8+
"types": [],
89
"allowImportingTsExtensions": true,
910
"strict": true,
1011
"skipLibCheck": true,
11-
"declaration": false,
12-
"sourceMap": false,
1312
"noUnusedLocals": true,
1413
"esModuleInterop": true,
1514
"noEmit": true

packages/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"build-types": "pnpm build-types-roll && pnpm build-types-check",
7474
"build-types-roll": "rolldown --config rolldown.dts.config.ts",
7575
"build-types-check": "tsc --project tsconfig.check.json",
76-
"typecheck": "tsc --noEmit && tsc --noEmit -p src/node",
76+
"typecheck": "tsc && tsc -p src/node",
7777
"lint": "eslint --cache --ext .ts src/**",
7878
"format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
7979
"generate-target": "tsx scripts/generateTarget.ts",

packages/vite/tsconfig.base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"rootDir": ".",
44
"target": "ES2023",
55
"module": "Preserve",
6+
"types": ["node"],
7+
"noEmit": true,
68
"moduleResolution": "bundler",
79
"strict": true,
8-
"declaration": true,
910
"noImplicitOverride": true,
1011
"noUnusedLocals": true,
1112
"esModuleInterop": true,

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"version": "1.0.0",
66
"scripts": {
7-
"typecheck": "tsc --noEmit"
7+
"typecheck": "tsc"
88
},
99
"devDependencies": {
1010
"convert-source-map": "^2.0.0",

playground/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"checkJs": true,
66
"target": "ES2023",
77
"module": "Preserve",
8-
"outDir": "dist",
9-
"baseUrl": ".",
8+
"noEmit": true,
109
"allowJs": true,
1110
"esModuleInterop": true,
1211
"resolveJsonModule": true,

scripts/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"module": "Preserve",
66
"target": "ES2023",
77
"moduleResolution": "bundler",
8+
"types": ["node"],
9+
"noEmit": true,
810
"strict": true,
911
"esModuleInterop": true,
1012
"skipLibCheck": true,

0 commit comments

Comments
 (0)