Skip to content

Commit 63817d3

Browse files
authored
chore: typecheck with tsgo (#1278)
1 parent 5e3bf6b commit 63817d3

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
"i18n-ally.keystyle": "nested",
66
"i18n-ally.sourceLanguage": "zh-CN",
77
"i18n-ally.namespace": true,
8-
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json"
8+
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json",
9+
"unocss.disable": true,
10+
"typescript.experimental.useTsgo": true
911
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"format:check": "prettier --check .",
2323
"format": "prettier --cache --write .",
2424
"lint": "oxlint .",
25-
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
25+
"typecheck:node": "tsgo --noEmit -p tsconfig.node.json --composite false",
2626
"typecheck:web": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
2727
"typecheck": "pnpm run typecheck:node && pnpm run typecheck:web",
2828
"start": "electron-vite preview",
@@ -132,6 +132,7 @@
132132
"@types/mime-types": "^3.0.1",
133133
"@types/node": "^22.19.3",
134134
"@types/xlsx": "^0.0.35",
135+
"@typescript/native-preview": "7.0.0-dev.20260115.1",
135136
"@vee-validate/zod": "^4.15.1",
136137
"@vitejs/plugin-vue": "^6.0.3",
137138
"@vitest/ui": "^3.2.4",

tsconfig.node.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
"resolveJsonModule": false,
1212
"types": ["electron-vite/node"],
1313
"moduleResolution": "bundler",
14-
"baseUrl": ".",
1514
"paths": {
15+
"*": [
16+
"./*"
17+
],
1618
"@/*": [
17-
"src/main/*"
19+
"./src/main/*"
1820
],
1921
"@shared/*": [
20-
"src/shared/*"
22+
"./src/shared/*"
2123
]
2224
}
2325
}

0 commit comments

Comments
 (0)