From 848df6236c3cd8019ec28e27d8790a350c07b768 Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Wed, 6 Nov 2024 14:58:35 +0100 Subject: [PATCH] fix: don't ship test files --- packages/eslint-plugin-query/package.json | 3 ++- packages/query-async-storage-persister/package.json | 3 ++- packages/query-broadcast-client-experimental/package.json | 3 ++- packages/query-core/package.json | 3 ++- packages/query-devtools/package.json | 3 ++- packages/query-persist-client-core/package.json | 3 ++- packages/query-sync-storage-persister/package.json | 3 ++- packages/react-query-devtools/package.json | 3 ++- packages/react-query-next-experimental/package.json | 3 ++- packages/react-query-persist-client/package.json | 3 ++- packages/react-query/package.json | 1 + packages/solid-query-devtools/package.json | 3 ++- packages/solid-query-persist-client/package.json | 3 ++- packages/solid-query/package.json | 3 ++- packages/svelte-query-devtools/package.json | 3 ++- packages/svelte-query-persist-client/package.json | 3 ++- packages/svelte-query/package.json | 3 ++- packages/vue-query-devtools/package.json | 3 ++- packages/vue-query/package.json | 3 ++- 19 files changed, 37 insertions(+), 18 deletions(-) diff --git a/packages/eslint-plugin-query/package.json b/packages/eslint-plugin-query/package.json index 9d8f49606a..08a278962e 100644 --- a/packages/eslint-plugin-query/package.json +++ b/packages/eslint-plugin-query/package.json @@ -47,7 +47,8 @@ "sideEffects": false, "files": [ "dist", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@typescript-eslint/utils": "^8.3.0" diff --git a/packages/query-async-storage-persister/package.json b/packages/query-async-storage-persister/package.json index d38d24216a..46705eb8db 100644 --- a/packages/query-async-storage-persister/package.json +++ b/packages/query-async-storage-persister/package.json @@ -47,7 +47,8 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-persist-client-core": "workspace:*" diff --git a/packages/query-broadcast-client-experimental/package.json b/packages/query-broadcast-client-experimental/package.json index 5005593c6c..cb07ee1bfa 100644 --- a/packages/query-broadcast-client-experimental/package.json +++ b/packages/query-broadcast-client-experimental/package.json @@ -45,7 +45,8 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-core": "workspace:*", diff --git a/packages/query-core/package.json b/packages/query-core/package.json index 7d55585ed6..cf34c43993 100644 --- a/packages/query-core/package.json +++ b/packages/query-core/package.json @@ -50,6 +50,7 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ] } diff --git a/packages/query-devtools/package.json b/packages/query-devtools/package.json index 6b76342f5c..0b7c93b93b 100644 --- a/packages/query-devtools/package.json +++ b/packages/query-devtools/package.json @@ -53,7 +53,8 @@ }, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "devDependencies": { "@kobalte/core": "^0.13.4", diff --git a/packages/query-persist-client-core/package.json b/packages/query-persist-client-core/package.json index e5a821b277..b1c9f761c6 100644 --- a/packages/query-persist-client-core/package.json +++ b/packages/query-persist-client-core/package.json @@ -47,7 +47,8 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-core": "workspace:*" diff --git a/packages/query-sync-storage-persister/package.json b/packages/query-sync-storage-persister/package.json index b8cd7fe7bc..2f8fc63ca0 100644 --- a/packages/query-sync-storage-persister/package.json +++ b/packages/query-sync-storage-persister/package.json @@ -47,7 +47,8 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-core": "workspace:*", diff --git a/packages/react-query-devtools/package.json b/packages/react-query-devtools/package.json index f81fed3cbc..76bdf4912c 100644 --- a/packages/react-query-devtools/package.json +++ b/packages/react-query-devtools/package.json @@ -68,7 +68,8 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-devtools": "workspace:*" diff --git a/packages/react-query-next-experimental/package.json b/packages/react-query-next-experimental/package.json index 4280b65819..b56e3bca55 100644 --- a/packages/react-query-next-experimental/package.json +++ b/packages/react-query-next-experimental/package.json @@ -45,7 +45,8 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "devDependencies": { "@tanstack/react-query": "workspace:*", diff --git a/packages/react-query-persist-client/package.json b/packages/react-query-persist-client/package.json index 2f19f44c7d..b3585dcdaa 100644 --- a/packages/react-query-persist-client/package.json +++ b/packages/react-query-persist-client/package.json @@ -47,7 +47,8 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-persist-client-core": "workspace:*" diff --git a/packages/react-query/package.json b/packages/react-query/package.json index 1efac1c522..7ec074adb2 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -53,6 +53,7 @@ "files": [ "build", "src", + "!src/__tests__", "!build/codemods/node_modules", "!build/codemods/vite.config.ts", "!build/codemods/**/__testfixtures__", diff --git a/packages/solid-query-devtools/package.json b/packages/solid-query-devtools/package.json index 10ba14de76..e34fe49758 100644 --- a/packages/solid-query-devtools/package.json +++ b/packages/solid-query-devtools/package.json @@ -51,7 +51,8 @@ }, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-devtools": "workspace:*" diff --git a/packages/solid-query-persist-client/package.json b/packages/solid-query-persist-client/package.json index cca676ff17..3a358385d1 100644 --- a/packages/solid-query-persist-client/package.json +++ b/packages/solid-query-persist-client/package.json @@ -54,7 +54,8 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-persist-client-core": "workspace:*" diff --git a/packages/solid-query/package.json b/packages/solid-query/package.json index 081c0e617e..f0bdfe186d 100644 --- a/packages/solid-query/package.json +++ b/packages/solid-query/package.json @@ -56,7 +56,8 @@ }, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-core": "workspace:*" diff --git a/packages/svelte-query-devtools/package.json b/packages/svelte-query-devtools/package.json index 284d5cdc65..61860380ad 100644 --- a/packages/svelte-query-devtools/package.json +++ b/packages/svelte-query-devtools/package.json @@ -35,7 +35,8 @@ }, "files": [ "dist", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-devtools": "workspace:*", diff --git a/packages/svelte-query-persist-client/package.json b/packages/svelte-query-persist-client/package.json index 33e43e6fed..56f75e1042 100644 --- a/packages/svelte-query-persist-client/package.json +++ b/packages/svelte-query-persist-client/package.json @@ -38,7 +38,8 @@ "sideEffects": false, "files": [ "dist", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-persist-client-core": "workspace:*" diff --git a/packages/svelte-query/package.json b/packages/svelte-query/package.json index 00455865b7..4576a36f65 100644 --- a/packages/svelte-query/package.json +++ b/packages/svelte-query/package.json @@ -38,7 +38,8 @@ "sideEffects": false, "files": [ "dist", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-core": "workspace:*" diff --git a/packages/vue-query-devtools/package.json b/packages/vue-query-devtools/package.json index b454be31ce..f444319852 100644 --- a/packages/vue-query-devtools/package.json +++ b/packages/vue-query-devtools/package.json @@ -43,7 +43,8 @@ "sideEffects": false, "files": [ "dist", - "src" + "src", + "!src/__tests__" ], "dependencies": { "@tanstack/query-devtools": "workspace:*" diff --git a/packages/vue-query/package.json b/packages/vue-query/package.json index a3e86cba81..bf48cdd73d 100644 --- a/packages/vue-query/package.json +++ b/packages/vue-query/package.json @@ -53,7 +53,8 @@ "sideEffects": false, "files": [ "build", - "src" + "src", + "!src/__tests__" ], "nx": { "targets": {