From 9b49fc02439b0f54b3773617a38d0abac939e51f Mon Sep 17 00:00:00 2001 From: TkDodo Date: Tue, 15 Sep 2026 20:35:46 +0200 Subject: [PATCH] fix: isolate TypeScript test output --- CONTRIBUTING.md | 7 +++++++ nx.json | 1 + .../angular-query-experimental/package.json | 16 ++++++++-------- .../angular-query-persist-client/package.json | 16 ++++++++-------- packages/eslint-plugin-query/package.json | 16 ++++++++-------- packages/lit-query/package.json | 6 +++--- packages/preact-query-devtools/package.json | 16 ++++++++-------- .../preact-query-persist-client/package.json | 16 ++++++++-------- packages/preact-query/package.json | 16 ++++++++-------- .../query-async-storage-persister/package.json | 16 ++++++++-------- .../package.json | 16 ++++++++-------- packages/query-core/package.json | 16 ++++++++-------- packages/query-devtools/package.json | 16 ++++++++-------- .../query-persist-client-core/package.json | 16 ++++++++-------- .../query-sync-storage-persister/package.json | 16 ++++++++-------- packages/query-test-utils/package.json | 6 +++--- packages/react-query-devtools/package.json | 16 ++++++++-------- .../react-query-next-experimental/package.json | 16 ++++++++-------- .../react-query-persist-client/package.json | 16 ++++++++-------- packages/react-query/package.json | 16 ++++++++-------- packages/solid-query-devtools/package.json | 17 +++++++++-------- .../solid-query-persist-client/package.json | 17 +++++++++-------- packages/solid-query/package.json | 16 ++++++++-------- packages/svelte-query-devtools/package.json | 2 +- .../svelte-query-persist-client/package.json | 2 +- packages/svelte-query/package.json | 2 +- packages/vue-query-devtools/package.json | 18 ++++++++++++++---- packages/vue-query/package.json | 16 ++++++++-------- 28 files changed, 193 insertions(+), 173 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 10fefc374d2..6a60b70378c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -164,6 +164,13 @@ For each new commit added to `main`, a GitHub Workflow is triggered which runs t TanStack Query uses [Nx](https://nx.dev/) as its monorepo tool. To run tests in a local environment, you should use `nx` commands from the root directory. +The `compile` target writes only its own package's `dist-ts` output. Nx compiles +its dependencies first. TypeScript tests use `--project` to read these dependency +declarations without rebuilding them. Each compiler version writes its own +declarations and build metadata to `.cache/test-types` inside the package. +This lets type tests run in parallel without overwriting each other's output or +the `compile` output. The package's `clean` script removes these test outputs. + ### ✅ Run all tests To run tests for **all packages**, run: diff --git a/nx.json b/nx.json index 143d6f40de3..323bc704247 100644 --- a/nx.json +++ b/nx.json @@ -27,6 +27,7 @@ "targetDefaults": { "compile": { "cache": true, + "dependsOn": ["^compile"], "inputs": ["default", "^production"], "outputs": ["{projectRoot}/dist-ts"] }, diff --git a/packages/angular-query-experimental/package.json b/packages/angular-query-experimental/package.json index 79642a179c0..ec5049fbcb0 100644 --- a/packages/angular-query-experimental/package.json +++ b/packages/angular-query-experimental/package.json @@ -27,16 +27,16 @@ "tanstack" ], "scripts": { - "clean": "premove ./dist ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./dist ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "pnpm pack && publint ./dist/*.tgz --strict && attw ./dist/*.tgz; premove ./dist/*.tgz", diff --git a/packages/angular-query-persist-client/package.json b/packages/angular-query-persist-client/package.json index b4c73b63932..9b552df253e 100644 --- a/packages/angular-query-persist-client/package.json +++ b/packages/angular-query-persist-client/package.json @@ -16,16 +16,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/eslint-plugin-query/package.json b/packages/eslint-plugin-query/package.json index 2113174a342..6efd99005ad 100644 --- a/packages/eslint-plugin-query/package.json +++ b/packages/eslint-plugin-query/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./dist ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./dist ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/lit-query/package.json b/packages/lit-query/package.json index f3b3ce18928..83e5405d3ec 100644 --- a/packages/lit-query/package.json +++ b/packages/lit-query/package.json @@ -15,11 +15,11 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto .", "lint:fix": "eslint --concurrency=auto . --fix", - "test:types": "tsc --noEmit", + "test:types": "tsc --noEmit --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:watch": "pnpm run test:lib:dev", diff --git a/packages/preact-query-devtools/package.json b/packages/preact-query-devtools/package.json index a4f782ba6b2..6eae14d2b75 100644 --- a/packages/preact-query-devtools/package.json +++ b/packages/preact-query-devtools/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build tsconfig.legacy.json", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/preact-query-persist-client/package.json b/packages/preact-query-persist-client/package.json index ef66591379a..e9674b7f38d 100644 --- a/packages/preact-query-persist-client/package.json +++ b/packages/preact-query-persist-client/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest --retry=3", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/preact-query/package.json b/packages/preact-query/package.json index d6517828fb2..e71444c8be3 100644 --- a/packages/preact-query/package.json +++ b/packages/preact-query/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/query-async-storage-persister/package.json b/packages/query-async-storage-persister/package.json index 5aadfa40110..12ef40faa51 100644 --- a/packages/query-async-storage-persister/package.json +++ b/packages/query-async-storage-persister/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/query-broadcast-client-experimental/package.json b/packages/query-broadcast-client-experimental/package.json index f8d3ec171f4..7922737136a 100644 --- a/packages/query-broadcast-client-experimental/package.json +++ b/packages/query-broadcast-client-experimental/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/query-core/package.json b/packages/query-core/package.json index a3369e4afbc..22fcee70085 100644 --- a/packages/query-core/package.json +++ b/packages/query-core/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build tsconfig.legacy.json", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/query-devtools/package.json b/packages/query-devtools/package.json index 86359f6c1c2..274f9e5c630 100644 --- a/packages/query-devtools/package.json +++ b/packages/query-devtools/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/query-persist-client-core/package.json b/packages/query-persist-client-core/package.json index 030e8b389e7..d478f851726 100644 --- a/packages/query-persist-client-core/package.json +++ b/packages/query-persist-client-core/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/query-sync-storage-persister/package.json b/packages/query-sync-storage-persister/package.json index 32e2605b241..7152167e2bc 100644 --- a/packages/query-sync-storage-persister/package.json +++ b/packages/query-sync-storage-persister/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/query-test-utils/package.json b/packages/query-test-utils/package.json index d3771fbe4b8..aad46dbfec0 100644 --- a/packages/query-test-utils/package.json +++ b/packages/query-test-utils/package.json @@ -26,11 +26,11 @@ "./package.json": "./package.json" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch" }, diff --git a/packages/react-query-devtools/package.json b/packages/react-query-devtools/package.json index e464acfe738..57d5c0af569 100644 --- a/packages/react-query-devtools/package.json +++ b/packages/react-query-devtools/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/react-query-next-experimental/package.json b/packages/react-query-next-experimental/package.json index ff2de6d6e0d..ab960d91a3a 100644 --- a/packages/react-query-next-experimental/package.json +++ b/packages/react-query-next-experimental/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:build": "publint --strict && attw --pack", "build": "tsdown --tsconfig tsconfig.prod.json" }, diff --git a/packages/react-query-persist-client/package.json b/packages/react-query-persist-client/package.json index 287ce6a78bd..d28f559cb91 100644 --- a/packages/react-query-persist-client/package.json +++ b/packages/react-query-persist-client/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build tsconfig.legacy.json", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest --retry=3", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/react-query/package.json b/packages/react-query/package.json index a926f752c0b..91ea60982d7 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/solid-query-devtools/package.json b/packages/solid-query-devtools/package.json index 2cd2ea57c78..224ad899f28 100644 --- a/packages/solid-query-devtools/package.json +++ b/packages/solid-query-devtools/package.json @@ -15,15 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", - "test:types": "npm run compile && npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types": "npm-run-all --serial test:types:*", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:build": "publint --strict && attw --pack", "test:lib": "vitest --retry=3", "test:lib:dev": "pnpm run test:lib --watch", diff --git a/packages/solid-query-persist-client/package.json b/packages/solid-query-persist-client/package.json index 61207df60ab..1522bcbe50e 100644 --- a/packages/solid-query-persist-client/package.json +++ b/packages/solid-query-persist-client/package.json @@ -15,15 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", - "test:types": "npm run compile && npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build", + "test:types": "npm-run-all --serial test:types:*", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/solid-query/package.json b/packages/solid-query/package.json index 40d855b9c89..c52e6b6977f 100644 --- a/packages/solid-query/package.json +++ b/packages/solid-query/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "npm-run-all --serial test:types:*", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build tsconfig.legacy.json", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "vitest --retry=3", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", diff --git a/packages/svelte-query-devtools/package.json b/packages/svelte-query-devtools/package.json index b0398d593e3..c4aa0db1f50 100644 --- a/packages/svelte-query-devtools/package.json +++ b/packages/svelte-query-devtools/package.json @@ -21,7 +21,7 @@ ], "scripts": { "clean": "premove ./dist ./coverage ./.svelte-kit ./dist-ts", - "compile": "tsc --build", + "compile": "tsc --project tsconfig.json", "test:types": "svelte-check --tsconfig ./tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:lib": "vitest", diff --git a/packages/svelte-query-persist-client/package.json b/packages/svelte-query-persist-client/package.json index 71d385c54ca..6cdb284647c 100644 --- a/packages/svelte-query-persist-client/package.json +++ b/packages/svelte-query-persist-client/package.json @@ -21,7 +21,7 @@ ], "scripts": { "clean": "premove ./dist ./coverage ./.svelte-kit ./dist-ts", - "compile": "tsc --build", + "compile": "tsc --project tsconfig.json", "test:types": "svelte-check --tsconfig ./tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src ./tests", "test:lib": "vitest", diff --git a/packages/svelte-query/package.json b/packages/svelte-query/package.json index d6d88189c59..0328ed8de1a 100644 --- a/packages/svelte-query/package.json +++ b/packages/svelte-query/package.json @@ -21,7 +21,7 @@ ], "scripts": { "clean": "premove ./dist ./coverage ./.svelte-kit ./dist-ts", - "compile": "tsc --build", + "compile": "tsc --project tsconfig.json", "test:types": "svelte-check --tsconfig ./tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src ./tests", "test:lib": "vitest", diff --git a/packages/vue-query-devtools/package.json b/packages/vue-query-devtools/package.json index 39c88d1072b..d0879751b06 100644 --- a/packages/vue-query-devtools/package.json +++ b/packages/vue-query-devtools/package.json @@ -15,14 +15,14 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "vue-tsc --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "vue-tsc --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", - "test:types": "vue-tsc --build", + "test:types": "vue-tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", "test:lib": "vitest", "test:lib:dev": "pnpm run test:lib --watch", "test:build": "publint --strict && attw --pack", - "build": "pnpm run compile && vite build" + "build": "vite build" }, "type": "module", "types": "dist/esm/index.d.ts", @@ -66,5 +66,15 @@ "peerDependencies": { "@tanstack/vue-query": "workspace:^", "vue": "^3.3.0" + }, + "nx": { + "targets": { + "build": { + "dependsOn": [ + "^build", + "compile" + ] + } + } } } diff --git a/packages/vue-query/package.json b/packages/vue-query/package.json index 3c86c6b6b18..6af82d89cbe 100644 --- a/packages/vue-query/package.json +++ b/packages/vue-query/package.json @@ -15,16 +15,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "scripts": { - "clean": "premove ./build ./coverage ./dist-ts", - "compile": "node ../../node_modules/typescript/lib/tsc.js --build", + "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types", + "compile": "node ../../node_modules/typescript/lib/tsc.js --project tsconfig.json", "test:eslint": "eslint --concurrency=auto ./src", "test:types": "vue-demi-switch 3 && pnpm run \"/^test:types:ts[0-9]{2}$/\"", - "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json", - "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json", - "test:types:tscurrent": "tsc --build", - "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build tsconfig.legacy.json", + "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts56 --tsBuildInfoFile .cache/test-types/ts56.tsbuildinfo", + "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo", + "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo", + "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo", + "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo", + "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo", "test:lib": "pnpm run test:lib:2 && pnpm run test:lib:2.7 && pnpm run test:lib:3", "test:lib:2": "vue-demi-switch 2 vue2 && vitest", "test:lib:2.7": "vue-demi-switch 2.7 vue2.7 && vitest",