Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use --build for type-checking to be exhaustive and less-fragile #274

Merged
merged 8 commits into from
Dec 4, 2023
Merged
2 changes: 2 additions & 0 deletions template/base/_gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ coverage
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
2 changes: 1 addition & 1 deletion template/config/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"build": "run-p type-check \"build-only {@}\" --",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false"
"type-check": "vue-tsc --build --force"
},
"devDependencies": {
"@types/node": "^18.18.10",
Expand Down
1 change: 1 addition & 0 deletions template/tsconfig/base/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"noEmit": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
Expand Down
1 change: 1 addition & 0 deletions template/tsconfig/base/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
],
"compilerOptions": {
"composite": true,
"noEmit": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"]
Expand Down
5 changes: 0 additions & 5 deletions template/tsconfig/cypress-ct/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions template/tsconfig/vitest/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"scripts": {
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
},
"devDependencies": {
"@types/jsdom": "^21.1.5"
}
Expand Down