Skip to content
Source
Sign inSign up
pingdotgg/t3code

build: upgrade Vite+ to 1.3 and cache typecheck #22716

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/22716/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 13 changed files with 6 additions and 3 deletions (loading 9).

x
0 of 13 viewed, 13 left
0 additions and 1 deletionapps/desktop/package.jsonModified
View file
@@ -7,7 +7,6 @@
"scripts": {
"ensure:electron": "node scripts/ensure-electron-runtime.mjs",
"start": "node scripts/start-electron.mjs",
- "typecheck": "tsc-rs --noEmit",
"test": "vp test run --passWithNoTests",
"smoke-test": "node scripts/smoke-test.mjs"
},
5 additions and 0 deletionsapps/desktop/vite.config.tsModified
View file
@@ -43,6 +43,11 @@
dependsOn: ["t3#build"],
cache: false,
},
+ // tsc-rs rewrites the tsbuildinfo it reads, which keeps a task out of the cache.
+ typecheck: {
+ command: "tsc-rs --noEmit",
+ cache: { input: [{ auto: true }, "!*.tsbuildinfo"] },
+ },
},
},
pack: [
1 addition and 2 deletionsapps/marketing/package.jsonModified
View file
@@ -7,8 +7,7 @@
"stage:install-scripts": "node scripts/stage-install-scripts.mjs",