Skip to content

Commit

Permalink
Add to remaining packages
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jun 22, 2024
1 parent 211ae97 commit c835c7b
Show file tree
Hide file tree
Showing 25 changed files with 97 additions and 57 deletions.
6 changes: 3 additions & 3 deletions packages/query-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
Expand Down
8 changes: 8 additions & 0 deletions packages/query-core/tsconfig.legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx"
},
"include": ["src"],
"exclude": ["src/__tests__"]
}
6 changes: 5 additions & 1 deletion packages/query-persist-client-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
Expand Down
8 changes: 1 addition & 7 deletions packages/query-persist-client-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": [
"src/**/*.ts",
"src/**/*.tsx",
".eslintrc.cjs",
"tsup.config.js",
"vite.config.ts"
]
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
6 changes: 5 additions & 1 deletion packages/query-sync-storage-persister/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
Expand Down
8 changes: 1 addition & 7 deletions packages/query-sync-storage-persister/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": [
"src/**/*.ts",
"src/**/*.tsx",
".eslintrc.cjs",
"tsup.config.js",
"vite.config.ts"
]
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
6 changes: 5 additions & 1 deletion packages/react-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
Expand Down
3 changes: 1 addition & 2 deletions packages/react-query-devtools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"jsx": "react-jsx"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src",
".eslintrc.cjs",
"test-setup.ts",
"tsup.config.js",
Expand Down
6 changes: 5 additions & 1 deletion packages/react-query-next-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
Expand Down
8 changes: 1 addition & 7 deletions packages/react-query-next-experimental/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,5 @@
"compilerOptions": {
"jsx": "react-jsx"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
".eslintrc.cjs",
"tsup.config.js",
"vite.config.ts"
]
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
6 changes: 5 additions & 1 deletion packages/react-query-persist-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:lib": "vitest --retry=3",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
Expand Down
3 changes: 1 addition & 2 deletions packages/react-query-persist-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"jsx": "react-jsx"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src",
".eslintrc.cjs",
"test-setup.ts",
"tsup.config.js",
Expand Down
6 changes: 5 additions & 1 deletion packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts53": "tsc",
"test:lib": "vitest --retry=3",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
Expand Down
3 changes: 1 addition & 2 deletions packages/react-query/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"jsx": "react-jsx"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src",
".eslintrc.cjs",
"test-setup.ts",
"tsup.config.js",
Expand Down
8 changes: 8 additions & 0 deletions packages/react-query/tsconfig.legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx"
},
"include": ["src"],
"exclude": ["src/__tests__"]
}
6 changes: 5 additions & 1 deletion packages/solid-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup",
Expand Down
8 changes: 1 addition & 7 deletions packages/solid-query-devtools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@
"jsx": "preserve",
"jsxImportSource": "solid-js"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
".eslintrc.cjs",
"tsup.config.js",
"vite.config.ts"
]
"include": ["src", ".eslintrc.cjs", "tsup.config.js", "vite.config.ts"]
}
6 changes: 5 additions & 1 deletion packages/solid-query-persist-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js",
"test:types:ts53": "tsc",
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
Expand Down
3 changes: 1 addition & 2 deletions packages/solid-query-persist-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"jsxImportSource": "solid-js"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src",
".eslintrc.cjs",
"test-setup.ts",
"tsup.config.js",
Expand Down
6 changes: 5 additions & 1 deletion packages/solid-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts53": "tsc",
"test:lib": "vitest --retry=3",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
Expand Down
3 changes: 1 addition & 2 deletions packages/solid-query/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"jsxImportSource": "solid-js"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src",
".eslintrc.cjs",
"test-setup.ts",
"tsup.config.js",
Expand Down
9 changes: 9 additions & 0 deletions packages/solid-query/tsconfig.legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js"
},
"include": ["src"],
"exclude": ["src/__tests__"]
}
14 changes: 9 additions & 5 deletions packages/vue-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@
"scripts": {
"clean": "rimraf ./build && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "vue-demi-switch 3 && tsc",
"test:lib": "pnpm run test:2 && pnpm run test:2.7 && pnpm run test:3",
"test:2": "vue-demi-switch 2 vue2 && vitest",
"test:2.7": "vue-demi-switch 2.7 vue2.7 && vitest",
"test:3": "vue-demi-switch 3 && vitest",
"test:types": "vue-demi-switch 3 && pnpm run \"/^test:types:ts[0-9]{2}$/\"",
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js -p tsconfig.legacy.json",
"test:types:ts53": "tsc",
"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",
"test:lib:3": "vue-demi-switch 3 && vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
Expand Down
3 changes: 1 addition & 2 deletions packages/vue-query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src",
".eslintrc.cjs",
"test-setup.ts",
"tsup.config.js",
Expand Down
5 changes: 5 additions & 0 deletions packages/vue-query/tsconfig.legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": ["src/__mocks__", "src/__tests__"]
}

0 comments on commit c835c7b

Please sign in to comment.