Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

package.json

79 lines4.0 KB

1{
2 "name": "root",
3 "private": true,
4 "repository": {
5 "type": "git",
6 "url": "git+https://github.com/TanStack/ai.git"
7 },
8 "packageManager": "pnpm@11.1.1",
9 "type": "module",
10 "engines": {
11 "pnpm": ">=10.17.0"
12 },
13 "scripts": {
14 "clean": "pnpm --filter \"./packages/**\" run clean",
15 "clean:all": "git clean -fdx --exclude=\"!.env\"",
16 "test": "pnpm run test:ci",
17 "test:pr": "nx affected --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build --exclude=examples/**,testing/**",
18 "test:ci": "nx run-many --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build --exclude=examples/**,testing/**",
19 "test:eslint": "nx affected --target=test:eslint --exclude=examples/**,testing/**",
20 "test:sherif": "sherif",
21 "test:lib": "nx affected --targets=test:lib --exclude=examples/**,testing/**",
22 "test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib",
23 "test:coverage": "nx affected --targets=test:coverage --exclude=examples/**,testing/**",
24 "test:build": "nx affected --target=test:build --exclude=examples/**,testing/**",
25 "test:types": "nx affected --targets=test:types --exclude=examples/**,testing/**",
26 "test:knip": "knip",
27 "test:docs": "node scripts/verify-links.ts",
28 "test:e2e": "pnpm --filter @tanstack/ai-e2e test:e2e",
29 "test:e2e:ui": "pnpm --filter @tanstack/ai-e2e test:e2e:ui",
30 "codemod:ag-ui-compliance": "pnpm --filter @tanstack/ai-codemods exec node ./run.mjs ag-ui-compliance",
31 "build": "nx affected --skip-nx-cache --targets=build --exclude=examples/**,testing/**",
32 "build:all": "nx run-many --targets=build --exclude=examples/**,testing/**",
33 "watch": "pnpm run build:all && env NX_DAEMON=true nx watch --all -- pnpm run build:all",
34 "dev": "pnpm run watch",
35 "dev:chat": "pnpm --filter ts-react-chat dev",
36 "format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
37 "generate-docs": "node scripts/generate-docs.ts && pnpm run copy:readme",
38 "generate:models": "pnpm generate:models:fetch && pnpm regenerate:models && tsx scripts/sync-provider-models.ts && pnpm format",
39 "generate:models:fetch": "tsx scripts/fetch-openrouter-models.ts",
40 "regenerate:models": "tsx scripts/convert-openrouter-models.ts",
41 "sync-docs-config": "node scripts/sync-docs-config.ts",
42 "copy:readme": "cp README.md packages/typescript/ai/README.md && cp README.md packages/typescript/ai-devtools/README.md && cp README.md packages/typescript/preact-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",
43 "changeset": "changeset",
44 "changeset:publish": "changeset publish",
45 "changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format"
46 },
47 "nx": {
48 "includedScripts": [
49 "test:docs",
50 "test:knip",
51 "test:sherif"
52 ]
53 },
54 "devDependencies": {
55 "@changesets/cli": "^2.30.0",
56 "@faker-js/faker": "^10.1.0",
57 "@svitejs/changesets-changelog-github-compact": "^1.2.0",
58 "@tanstack/eslint-config": "0.4.0",
59 "@tanstack/typedoc-config": "0.3.1",
60 "@tanstack/vite-config": "0.4.1",
61 "@types/node": "^24.10.1",
62 "eslint": "^9.39.1",
63 "eslint-plugin-unused-imports": "^4.3.0",
64 "happy-dom": "^20.0.10",
65 "knip": "^5.70.2",
66 "markdown-link-extractor": "^4.0.3",
67 "nx": "22.1.2",
68 "premove": "^4.0.0",
69 "prettier": "^3.7.4",
70 "prettier-plugin-svelte": "^3.4.0",
71 "publint": "^0.3.15",
72 "sherif": "^1.9.0",
73 "tinyglobby": "^0.2.15",
74 "tsx": "^4.21.0",
75 "typescript": "5.9.3",
76 "vite": "^7.3.3",
77 "vitest": "^4.0.14"
78 }