From 57291a1706052095d4fbe3e1d5b51a9149fab42e Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Fri, 5 May 2023 07:16:24 +1000 Subject: [PATCH] fix(svelte-query-devtools): Fix test:types --- packages/svelte-query-devtools/tsconfig.json | 7 +------ packages/svelte-query/package.json | 2 +- packages/svelte-query/tsconfig.json | 5 +---- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/svelte-query-devtools/tsconfig.json b/packages/svelte-query-devtools/tsconfig.json index 799ffc660f..567c7e9e99 100644 --- a/packages/svelte-query-devtools/tsconfig.json +++ b/packages/svelte-query-devtools/tsconfig.json @@ -24,12 +24,7 @@ "strict": true, "strictNullChecks": true, "target": "esnext", - "tsBuildInfoFile": "./build/.tsbuildinfo", - "paths": { - "@tanstack/query-core": ["../query-core/src"], - "@tanstack/query-devtools": ["../query-devtools/src"], - "@tanstack/svelte-query": ["../svelte-query/src"] - } + "tsBuildInfoFile": "./build/.tsbuildinfo" }, "include": ["src", "src/**/*.svelte"] } diff --git a/packages/svelte-query/package.json b/packages/svelte-query/package.json index ef184e5467..c98b0f7466 100644 --- a/packages/svelte-query/package.json +++ b/packages/svelte-query/package.json @@ -31,7 +31,7 @@ ], "scripts": { "clean": "rimraf ./build", - "test:types": "svelte-check --tsconfig ./tsconfig.json", + "test:types": "svelte-check --tsconfig ./tsconfig.json && pnpm build", "test:eslint": "eslint --ext .svelte,.ts ./src", "test:lib": "vitest run --coverage", "test:lib:dev": "pnpm run test:lib --watch", diff --git a/packages/svelte-query/tsconfig.json b/packages/svelte-query/tsconfig.json index 322c3910cb..53c09ca9fe 100644 --- a/packages/svelte-query/tsconfig.json +++ b/packages/svelte-query/tsconfig.json @@ -25,10 +25,7 @@ "strictNullChecks": true, "target": "esnext", "tsBuildInfoFile": "./build/.tsbuildinfo", - "types": ["vitest/globals", "@testing-library/jest-dom"], - "paths": { - "@tanstack/query-core": ["../query-core/src"] - } + "types": ["vitest/globals", "@testing-library/jest-dom"] }, "include": ["src", "src/**/*.svelte"] }