Skip to content

Commit 0e69484

Browse files
ci: sync config between projects (#55)
* ci: sync config between projects * Fix pnpm-lock
1 parent a48a3bb commit 0e69484

6 files changed

Lines changed: 26 additions & 178 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
uses: tanstack/config/.github/setup@main
2424
- name: Fix formatting
2525
run: pnpm prettier:write
26-
- name: Regenerate docs
27-
run: pnpm build:all && pnpm docs:generate
26+
- name: Generate Docs
27+
run: pnpm generate-docs
2828
- name: Apply fixes
2929
uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
3030
with:

nx.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
"inputs": ["production", "^production"],
5353
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"]
5454
},
55+
"test:docs": {
56+
"cache": true,
57+
"inputs": ["{workspaceRoot}/docs/**/*"]
58+
},
5559
"test:knip": {
5660
"cache": true,
5761
"inputs": ["{workspaceRoot}/**/*"]

package.json

Lines changed: 20 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -8,61 +8,42 @@
88
"packageManager": "pnpm@10.17.0",
99
"type": "module",
1010
"scripts": {
11-
"dev:packages": "pnpm run --filter '@tanstack/ai*' dev",
12-
"typecheck": "pnpm run -r typecheck",
13-
"lint": "pnpm run -r lint",
14-
"build": "nx affected --skip-nx-cache --targets=build --exclude=examples/** && size-limit",
15-
"build:all": "nx run-many --targets=build --exclude=examples/** && size-limit",
16-
"build:core": "nx run-many --targets=build --projects=packages/ai && size-limit",
17-
"changeset": "changeset",
18-
"changeset:publish": "changeset publish",
19-
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm prettier:write",
20-
"clean": "find . -name 'dist' -type d -prune -exec rm -rf {} +",
21-
"clean:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -rf {} +",
22-
"clean:all": "pnpm run clean && pnpm run clean:node_modules",
23-
"copy:readme": "cp README.md packages/typescript/ai/README.md && cp README.md packages/typescript/ai-devtools/README.md && cp README.md packages/typescript/ai-client/README.md && cp README.md packages/typescript/ai-gemini/README.md && cp README.md packages/typescript/ai-ollama/README.md && cp README.md packages/typescript/ai-openai/README.md && cp README.md packages/typescript/ai-react/README.md && cp README.md packages/typescript/ai-react-ui/README.md && cp README.md packages/typescript/react-ai-devtools/README.md && cp README.md packages/typescript/solid-ai-devtools/README.md",
24-
"dev": "pnpm run watch",
25-
"docs:generate": "node scripts/generateDocs.ts && pnpm run copy:readme",
26-
"format": "pnpm run prettier:write",
27-
"lint:fix": "nx affected --target=lint:fix --exclude=examples/**",
28-
"lint:fix:all": "pnpm run format && nx run-many --targets=lint --fix",
29-
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",
30-
"prettier": "prettier --ignore-unknown '**/*'",
31-
"prettier:write": "pnpm run prettier --write",
32-
"size": "size-limit",
11+
"clean": "pnpm --filter \"./packages/**\" run clean",
3312
"test": "pnpm run test:ci",
34-
"test:build": "nx affected --target=test:build --exclude=examples/**",
35-
"test:ci": "nx run-many --targets=test:format,test:eslint,test:sherif,test:knip,test:lib,test:types,test:build,test:verify-links",
13+
"test:pr": "nx affected --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build",
14+
"test:ci": "nx run-many --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build",
3615
"test:eslint": "nx affected --target=test:eslint --exclude=examples/**",
3716
"test:format": "pnpm run prettier --check",
38-
"test:knip": "knip --max-issues=33",
17+
"test:sherif": "sherif",
3918
"test:lib": "nx affected --targets=test:lib --exclude=examples/**",
4019
"test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib",
41-
"test:pr": "nx affected --targets=test:format,test:eslint,test:sherif,test:knip,test:lib,test:types,test:build,build",
42-
"test:sherif": "sherif",
20+
"test:build": "nx affected --target=test:build --exclude=examples/**",
4321
"test:types": "nx affected --targets=test:types --exclude=examples/**",
44-
"test:verify-links": "node scripts/verify-links.ts",
45-
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all"
22+
"test:knip": "knip --max-issues=33",
23+
"test:docs": "node scripts/verify-links.ts",
24+
"build": "nx affected --skip-nx-cache --targets=build --exclude=examples/**",
25+
"build:all": "nx run-many --targets=build --exclude=examples/**",
26+
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
27+
"dev": "pnpm run watch",
28+
"prettier": "prettier --ignore-unknown '**/*'",
29+
"prettier:write": "pnpm run prettier --write",
30+
"generate-docs": "node scripts/generate-docs.ts && pnpm run copy:readme",
31+
"copy:readme": "cp README.md packages/typescript/ai/README.md && cp README.md packages/typescript/ai-devtools/README.md && cp README.md packages/typescript/ai-client/README.md && cp README.md packages/typescript/ai-gemini/README.md && cp README.md packages/typescript/ai-ollama/README.md && cp README.md packages/typescript/ai-openai/README.md && cp README.md packages/typescript/ai-react/README.md && cp README.md packages/typescript/ai-react-ui/README.md && cp README.md packages/typescript/react-ai-devtools/README.md && cp README.md packages/typescript/solid-ai-devtools/README.md",
32+
"format": "pnpm run prettier:write",
33+
"changeset": "changeset",
34+
"changeset:publish": "changeset publish",
35+
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm prettier:write"
4636
},
4737
"nx": {
4838
"includedScripts": [
39+
"test:docs",
4940
"test:knip",
5041
"test:sherif"
5142
]
5243
},
53-
"size-limit": [
54-
{
55-
"path": "packages/typescript/ai/dist/esm/index.js",
56-
"limit": "21 KB",
57-
"ignore": [
58-
"@alcyone-labs/zod-to-json-schema"
59-
]
60-
}
61-
],
6244
"devDependencies": {
6345
"@changesets/cli": "^2.29.8",
6446
"@faker-js/faker": "^10.1.0",
65-
"@size-limit/preset-small-lib": "^11.2.0",
6647
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
6748
"@tanstack/eslint-config": "0.3.3",
6849
"@tanstack/typedoc-config": "0.3.1",
@@ -79,26 +60,9 @@
7960
"prettier-plugin-svelte": "^3.4.0",
8061
"publint": "^0.3.15",
8162
"sherif": "^1.9.0",
82-
"size-limit": "^11.2.0",
8363
"tinyglobby": "^0.2.15",
8464
"typescript": "5.9.3",
8565
"vite": "^7.2.4",
8666
"vitest": "^4.0.14"
87-
},
88-
"pnpm": {
89-
"overrides": {
90-
"@tanstack/ai": "workspace:*",
91-
"@tanstack/ai-anthropic": "workspace:*",
92-
"@tanstack/ai-client": "workspace:*",
93-
"@tanstack/ai-devtools": "workspace:*",
94-
"@tanstack/ai-gemini": "workspace:*",
95-
"@tanstack/ai-ollama": "workspace:*",
96-
"@tanstack/ai-openai": "workspace:*",
97-
"@tanstack/ai-react": "workspace:*",
98-
"@tanstack/ai-react-ui": "workspace:*",
99-
"@tanstack/react-ai-devtools": "workspace:*",
100-
"@tanstack/solid-ai-devtools": "workspace:*",
101-
"@tanstack/tests-adapters": "workspace:*"
102-
}
10367
}
10468
}

pnpm-lock.yaml

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

scripts/clean.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)