Skip to content

Commit 9b27fdf

Browse files
authored
fix: use --build for type-checking to be exhaustive and less-fragile (#274)
1 parent 95a7052 commit 9b27fdf

File tree

10 files changed

+13
-50
lines changed

10 files changed

+13
-50
lines changed

pnpm-lock.yaml

Lines changed: 4 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

template/base/_gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ coverage
2626
*.njsproj
2727
*.sln
2828
*.sw?
29+
30+
*.tsbuildinfo

template/config/nightwatch/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@types/nightwatch": "^2.3.30",
1010
"geckodriver": "^4.2.1",
1111
"chromedriver": "^119.0.0",
12-
"ts-node": "^10.9.1"
12+
"ts-node": "^10.9.1",
13+
"vite-plugin-nightwatch": "^0.4.5"
1314
}
1415
}

template/config/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"scripts": {
33
"build": "run-p type-check \"build-only {@}\" --",
44
"build-only": "vite build",
5-
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false"
5+
"type-check": "vue-tsc --build --force"
66
},
77
"devDependencies": {
88
"@types/node": "^18.18.13",

template/tsconfig/base/tsconfig.app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"exclude": ["src/**/__tests__/*"],
55
"compilerOptions": {
66
"composite": true,
7+
"noEmit": true,
78
"baseUrl": ".",
89
"paths": {
910
"@/*": ["./src/*"]

template/tsconfig/base/tsconfig.node.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
],
1010
"compilerOptions": {
1111
"composite": true,
12+
"noEmit": true,
1213
"module": "ESNext",
1314
"moduleResolution": "Bundler",
1415
"types": ["node"]

template/tsconfig/cypress-ct/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

template/tsconfig/nightwatch-ct/tsconfig.app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"exclude": ["src/**/__tests__/*"],
55
"compilerOptions": {
66
"composite": true,
7+
"noEmit": true,
78
"baseUrl": ".",
89
"paths": {
910
"@/*": ["./src/*"]

template/tsconfig/nightwatch/nightwatch/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"module": "commonjs",
66
"moduleResolution": "node",
77
"composite": true,
8+
"noEmit": true,
89
"rootDir": "../",
910
"lib": ["ESNext", "dom"],
1011
"types": ["nightwatch"]

template/tsconfig/vitest/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"scripts": {
3-
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
4-
},
52
"devDependencies": {
63
"@types/jsdom": "^21.1.6"
74
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy