diff --git a/examples/react/basic/tsconfig.json b/examples/react/basic/tsconfig.json index 7c6ac058..7dc71941 100644 --- a/examples/react/basic/tsconfig.json +++ b/examples/react/basic/tsconfig.json @@ -19,6 +19,5 @@ "types": ["node"], "declaration": true // necessary to check if generated code can be published }, - "include": ["src", "./*.config.ts", "__mocks__"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src", "./*.config.ts", "__mocks__"] } diff --git a/examples/react/basic/tsconfig.node.json b/examples/react/basic/tsconfig.node.json deleted file mode 100644 index 9d31e2ae..00000000 --- a/examples/react/basic/tsconfig.node.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "module": "ESNext", - "moduleResolution": "Node", - "allowSyntheticDefaultImports": true - }, - "include": ["vite.config.ts"] -} diff --git a/examples/react/basic/vite.config.js b/examples/react/basic/vite.config.ts similarity index 82% rename from examples/react/basic/vite.config.js rename to examples/react/basic/vite.config.ts index bcd8c9db..f1c1bc87 100644 --- a/examples/react/basic/vite.config.js +++ b/examples/react/basic/vite.config.ts @@ -20,5 +20,10 @@ export default defineConfig({ plugins: [react()], test: { environment: "jsdom", + typecheck: { + enabled: true, + // Mofidied to typecheck definition files as well as source files + include: ["**/*.{test,spec}?(-d).?(c|m)[jt]s?(x)"], + }, }, }); diff --git a/packages/connect-query/vite.config.ts b/packages/connect-query/vite.config.ts index 7b899208..18b51924 100644 --- a/packages/connect-query/vite.config.ts +++ b/packages/connect-query/vite.config.ts @@ -18,6 +18,11 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { environment: "jsdom", + typecheck: { + enabled: true, + // Mofidied to typecheck definition files as well as source files + include: ["**/*.{test,spec}?(-d).?(c|m)[jt]s?(x)"], + }, coverage: { provider: "istanbul", thresholds: {