diff --git a/template/config/typescript/package.json b/template/config/typescript/package.json index 8cb37583..6eea9736 100644 --- a/template/config/typescript/package.json +++ b/template/config/typescript/package.json @@ -2,7 +2,7 @@ "scripts": { "build": "run-p type-check build-only", "build-only": "vite build", - "type-check": "vue-tsc --noEmit" + "type-check": "run-p type-check:*" }, "devDependencies": { "@types/node": "^16.11.65", diff --git a/template/tsconfig/base/package.json b/template/tsconfig/base/package.json index aa3386ce..158f454e 100644 --- a/template/tsconfig/base/package.json +++ b/template/tsconfig/base/package.json @@ -1,4 +1,8 @@ { + "scripts": { + "type-check:app": "vue-tsc --noEmit", + "type-check:config": "vue-tsc --noEmit -p tsconfig.config.json --composite false" + }, "devDependencies": { "@vue/tsconfig": "^0.1.3" } diff --git a/template/tsconfig/cypress-ct/package.json b/template/tsconfig/cypress-ct/package.json index ba3c34a4..31972ffc 100644 --- a/template/tsconfig/cypress-ct/package.json +++ b/template/tsconfig/cypress-ct/package.json @@ -1,5 +1,7 @@ { "scripts": { - "type-check": "vue-tsc --noEmit -p tsconfig.cypress-ct.json --composite false" + "type-check": "run-p type-check:*", + "type-check:app": "vue-tsc --noEmit -p tsconfig.app.json --composite false", + "type-check:cypress-ct": "vue-tsc --noEmit -p tsconfig.cypress-ct.json --composite false" } } diff --git a/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json b/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json index b21f0843..c730586b 100644 --- a/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json +++ b/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json @@ -2,8 +2,8 @@ "extends": "./tsconfig.app.json", "include": [ "env.d.ts", - "src/**/*", - "src/**/*.vue", + "src/**/__tests__/**/*", + "src/**/__tests__/**/*.vue", "cypress/support/component.*", "cypress/support/commands.ts" ], diff --git a/template/tsconfig/vitest/package.json b/template/tsconfig/vitest/package.json index 340d2e3a..866394d3 100644 --- a/template/tsconfig/vitest/package.json +++ b/template/tsconfig/vitest/package.json @@ -1,6 +1,8 @@ { "scripts": { - "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false" + "type-check": "run-p type-check:*", + "type-check:app": "vue-tsc --noEmit -p tsconfig.app.json --composite false", + "type-check:vitest": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false" }, "devDependencies": { "@types/jsdom": "^20.0.0" diff --git a/template/tsconfig/vitest/tsconfig.vitest.json b/template/tsconfig/vitest/tsconfig.vitest.json index d080d611..4c45bc1e 100644 --- a/template/tsconfig/vitest/tsconfig.vitest.json +++ b/template/tsconfig/vitest/tsconfig.vitest.json @@ -1,5 +1,6 @@ { "extends": "./tsconfig.app.json", + "include": ["env.d.ts", "src/**/__tests__/**/*", "src/**/__tests__/**/*.vue"], "exclude": [], "compilerOptions": { "composite": true,