Skip to content

Commit 2a0af45

Browse files
ci: sync between projects (#317)
* ci: sync between projects * Remove separate verify-links
1 parent 09d5265 commit 2a0af45

File tree

6 files changed

+30
-10
lines changed

6 files changed

+30
-10
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
main-branch-name: main
3131
- name: Run Checks
3232
run: pnpm run test:pr
33-
- name: Verify Links
34-
run: pnpm run verify-links
3533
preview:
3634
name: Preview
3735
runs-on: ubuntu-latest

nx.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@
55
"useInferencePlugins": false,
66
"parallel": 5,
77
"targetDefaults": {
8+
"test:docs": {
9+
"cache": true,
10+
"inputs": ["{workspaceRoot}/docs/**/*"]
11+
},
12+
"test:sherif": {
13+
"cache": true,
14+
"inputs": ["{workspaceRoot}/**/package.json"]
15+
},
816
"test:eslint": {
917
"cache": true
1018
},
1119
"test:types": {
1220
"cache": true
1321
},
14-
"test:sherif": {
15-
"cache": true
16-
},
1722
"build": {
1823
"cache": true,
1924
"dependsOn": ["^build"]

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,32 @@
55
"type": "git",
66
"url": "https://github.com/TanStack/config.git"
77
},
8-
"packageManager": "pnpm@10.18.2",
8+
"packageManager": "pnpm@10.24.0",
99
"type": "module",
1010
"scripts": {
11-
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...')} else {process.exit(1)}\" || npx -y only-allow pnpm",
11+
"clean": "pnpm --filter \"./packages/**\" run clean",
1212
"test": "pnpm run test:ci",
13-
"test:pr": "nx affected --targets=test:eslint,test:types,test:build,test:sherif,build",
14-
"test:ci": "nx run-many --targets=test:eslint,test:types,test:build,test:sherif,build",
13+
"test:pr": "nx affected --targets=test:sherif,test:docs,test:eslint,test:types,test:build,build",
14+
"test:ci": "nx run-many --targets=test:sherif,test:docs,test:eslint,test:types,test:build,build",
1515
"test:build": "nx affected --target=test:build",
1616
"test:types": "nx affected --target=test:types",
1717
"test:eslint": "nx affected --target=test:eslint",
1818
"test:format": "pnpm run prettier --check",
1919
"test:sherif": "sherif",
20+
"test:docs": "node scripts/verify-links.ts",
2021
"build": "nx affected --target=build",
2122
"build:all": "nx run-many --target=build",
2223
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
2324
"dev": "pnpm run watch",
2425
"prettier": "prettier --experimental-cli --ignore-unknown '**/*'",
2526
"prettier:write": "pnpm run prettier --write",
26-
"verify-links": "node scripts/verify-links.ts",
2727
"changeset": "changeset",
2828
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm prettier:write",
2929
"changeset:publish": "changeset publish"
3030
},
3131
"nx": {
3232
"includedScripts": [
33+
"test:docs",
3334
"test:sherif"
3435
]
3536
},
@@ -41,6 +42,7 @@
4142
"jsdom": "catalog:",
4243
"markdown-link-extractor": "catalog:",
4344
"nx": "catalog:",
45+
"premove": "catalog:",
4446
"prettier": "catalog:",
4547
"publint": "catalog:",
4648
"sherif": "catalog:",

packages/config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"url": "https://github.com/sponsors/tannerlinsley"
1616
},
1717
"scripts": {
18+
"clean": "premove ./dist",
1819
"test:types": "tsc",
1920
"test:eslint": "eslint --concurrency=auto ./src",
2021
"test:build": "publint --strict",

pnpm-lock.yaml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ catalog:
2929
jsonfile: ^6.2.0
3030
markdown-link-extractor: ^4.0.3
3131
nx: 22.1.0
32+
premove: ^4.0.0
3233
prettier: ^3.7.1
3334
publint: ^0.3.15
3435
react: ^19.2.0

0 commit comments

Comments
 (0)