Skip to content

Commit

Permalink
ci(*): add attw --pack for all packages (TanStack#7119)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik Dorfmeister <[email protected]>
  • Loading branch information
manudeli and TkDodo authored Mar 18, 2024
1 parent 8d5ce72 commit 1b698ca
Show file tree
Hide file tree
Showing 31 changed files with 197 additions and 3 deletions.
5 changes: 5 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
"inputs": ["default", "^public"],
"cache": true
},
"test:attw": {
"dependsOn": ["build"],
"inputs": ["default", "^public"],
"cache": true
},
"build": {
"dependsOn": ["^build"],
"inputs": ["default", "^public"],
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
"prepare": "husky",
"install:csb": "corepack enable && pnpm install --frozen-lockfile",
"test": "pnpm run test:ci",
"test:pr": "nx affected --targets=test:format,test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build",
"test:ci": "nx run-many --targets=test:format,test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build",
"test:pr": "nx affected --targets=test:format,test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build,test:attw",
"test:ci": "nx run-many --targets=test:format,test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build,test:attw",
"test:eslint": "nx affected --target=test:eslint --exclude=examples/**",
"test:format": "pnpm run prettier --check",
"test:sherif": "sherif -i react-scripts",
"test:lib": "nx affected --target=test:lib --exclude=examples/**",
"test:lib:dev": "pnpm run test:lib && nx watch --all -- pnpm run test:lib",
"test:build": "nx affected --target=test:build --exclude=examples/**",
"test:attw": "nx affected --target=test:attw --exclude=examples/**",
"test:types": "nx affected --target=test:types --exclude=examples/**",
"test:knip": "knip",
"build": "nx affected --target=build --exclude=examples/**",
Expand All @@ -40,6 +41,7 @@
},
"namespace": "@tanstack",
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.1",
"@cspell/eslint-plugin": "^8.3.2",
"@solidjs/testing-library": "^0.8.6",
"@tanstack/config": "^0.4.4",
Expand Down
3 changes: 3 additions & 0 deletions packages/angular-query-devtools-experimental/.attw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"]
}
1 change: 1 addition & 0 deletions packages/angular-query-devtools-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "ng-packagr -p ng-package.json -c tsconfig.build.json && rimraf ./build/package.json"
},
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/angular-query-experimental/.attw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"]
}
1 change: 1 addition & 0 deletions packages/angular-query-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "ng-packagr -p ng-package.json -c tsconfig.build.json && rimraf ./build/package.json"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-plugin-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "vite build"
},
"files": [
Expand Down
1 change: 1 addition & 0 deletions packages/query-async-storage-persister/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/query-broadcast-client-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/query-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
}
}
1 change: 1 addition & 0 deletions packages/query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup",
"build:dev": "tsup --watch"
},
Expand Down
1 change: 1 addition & 0 deletions packages/query-persist-client-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/query-sync-storage-persister/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
},
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/react-query-devtools/.attw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignoreRules": ["no-resolution"]
}
1 change: 1 addition & 0 deletions packages/react-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup",
"build:dev": "tsup --watch"
},
Expand Down
1 change: 1 addition & 0 deletions packages/react-query-next-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/react-query-persist-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"test:lib": "vitest --retry=3",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"test:lib": "vitest --retry=3",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "pnpm build:tsup && pnpm build:codemods",
"build:tsup": "tsup",
"build:codemods": "cpy ../query-codemods/* ./build/codemods"
Expand Down
1 change: 1 addition & 0 deletions packages/solid-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "tsc",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup",
"build:dev": "tsup --watch"
},
Expand Down
1 change: 1 addition & 0 deletions packages/solid-query-persist-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/solid-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"test:lib": "vitest --retry=3",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup",
"build:watch": "tsup --watch"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/svelte-query-devtools/.attw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"]
}
1 change: 1 addition & 0 deletions packages/svelte-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"test:types": "svelte-check --tsconfig ./tsconfig.json",
"test:eslint": "eslint --ext .svelte,.ts ./src",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "svelte-package --input ./src --output ./dist"
},
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/svelte-query-persist-client/.attw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"]
}
1 change: 1 addition & 0 deletions packages/svelte-query-persist-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "svelte-package --input ./src --output ./dist"
},
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/svelte-query/.attw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"]
}
1 change: 1 addition & 0 deletions packages/svelte-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"test:lib": "vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "svelte-package --input ./src --output ./dist"
},
"dependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/vue-query-devtools/.attw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignoreRules": [
"cjs-resolves-to-esm",
"internal-resolution-error",
"no-resolution"
]
}
1 change: 1 addition & 0 deletions packages/vue-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types": "vue-tsc",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "vite build"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/vue-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"test:3": "vue-demi-switch 3 && vitest",
"test:lib:dev": "pnpm run test:lib --watch",
"test:build": "publint --strict",
"test:attw": "attw --pack",
"build": "tsup"
},
"nx": {
Expand Down
Loading

0 comments on commit 1b698ca

Please sign in to comment.