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

package.json

103 lines5.3 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.9.0",
9 "type": "module",
10 "engines": {
11 "pnpm": ">=11.9.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": "pnpm run test:react-native && VITEST_MAX_WORKERS=1 nx affected --targets=test:sherif,test:knip,test:docs,test:kiira,test:maintainer,test:ai-review,test:oxlint,test:lib,test:types,test:build,build && pnpm test:dts",
18 "test:ci": "pnpm run test:react-native && VITEST_MAX_WORKERS=1 nx run-many --targets=test:sherif,test:knip,test:docs,test:kiira,test:maintainer,test:ai-review,test:oxlint,test:lib,test:types,test:build,build && pnpm test:dts",
19 "test:oxlint": "nx affected --target=test:oxlint --exclude=examples/**,testing/**",
20 "test:sherif": "sherif --ignore-dependency typescript --ignore-dependency @fal-ai/client",
21 "test:lib": "VITEST_MAX_WORKERS=1 nx affected --targets=test:lib --exclude=examples/**,testing/**",
22 "test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib",
23 "test:coverage": "VITEST_MAX_WORKERS=1 nx affected --targets=test:coverage --exclude=examples/**,testing/**",
24 "test:coverage:all": "VITEST_MAX_WORKERS=1 nx run-many --targets=test:coverage --exclude=examples/**,testing/**",
25 "test:build": "nx affected --target=test:build --exclude=examples/**,testing/**",
26 "test:types": "nx affected --targets=test:types --exclude=examples/**,testing/**",
27 "test:knip": "knip",
28 "test:docs": "tsx scripts/verify-links.ts",
29 "test:dts": "node scripts/scan-dangling-dts.mjs",
30 "test:maintainer": "vitest run --root scripts/maintainer && vitest run scripts/model-sync scripts/publish-staged-docs.test.ts && vitest run scripts/coverage-check.test.ts scripts/print-failed-nx-logs.test.ts",
31 "test:ai-review": "vitest run --root agent-scripts/ai-review",
32 "ai-review": "node agent-scripts/ai-review/run.ts",
33 "maintainer:sweep": "node scripts/maintainer/sweep.ts",
34 "maintainer:scorecard": "node scripts/maintainer/scorecard.ts",
35 "test:kiira": "kiira check",
36 "test:react-native": "pnpm --filter @tanstack/ai-react-native-smoke smoke",
37 "test:e2e": "pnpm --filter @tanstack/ai-e2e test:e2e",
38 "test:e2e:ui": "pnpm --filter @tanstack/ai-e2e test:e2e:ui",
39 "codemod:ag-ui-compliance": "pnpm --filter @tanstack/ai-codemods exec node ./run.mjs ag-ui-compliance",
40 "codemod:move-sampling-to-model-options": "pnpm --filter @tanstack/ai-codemods exec node ./run.mjs move-sampling-to-model-options",
41 "build": "nx affected --skip-nx-cache --targets=build --exclude=examples/**,testing/**",
42 "build:all": "nx run-many --targets=build --exclude=examples/**,testing/**",
43 "watch": "pnpm run build:all && env NX_DAEMON=true nx watch --all -- pnpm run build:all",
44 "dev": "pnpm run watch",
45 "dev:chat": "pnpm --filter ts-react-chat dev",
46 "format": "oxfmt .",
47 "generate-docs": "node scripts/generate-docs.ts && pnpm run copy:readme",
48 "generate:fal-image-fields": "tsx scripts/generate-fal-image-field-map.ts",
49 "generate:models": "pnpm generate:models:fetch && pnpm regenerate:models && tsx scripts/sync-elevenlabs-models.ts && tsx scripts/sync-provider-models.ts && pnpm format",
50 "generate:models:elevenlabs": "tsx scripts/sync-elevenlabs-models.ts",
51 "generate:models:fetch": "tsx scripts/fetch-openrouter-models.ts && tsx scripts/fetch-vercel-gateway-models.ts && tsx scripts/fetch-lovable-gateway-models.ts && node scripts/fetch-llmgateway-models.ts && tsx scripts/fetch-neon-models.ts",
52 "regenerate:models": "tsx scripts/convert-openrouter-models.ts && tsx scripts/convert-vercel-gateway-models.ts && node scripts/convert-llmgateway-models.ts && tsx scripts/convert-neon-models.ts",
53 "sync-docs-config": "node scripts/sync-docs-config.ts",
54 "copy:readme": "node scripts/copy-readme.js",
55 "changeset": "changeset",
56 "changeset:publish": "changeset publish",
57 "changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format"
58 },
59 "nx": {
60 "includedScripts": [
61 "test:docs",
62 "test:dts",
63 "test:kiira",
64 "test:knip",
65 "test:maintainer",
66 "test:ai-review",
67 "test:sherif"
68 ]
69 },
70 "devDependencies": {
71 "@aws-sdk/client-bedrock": "^3.1057.0",
72 "@changesets/changelog-github": "^1.0.1",
73 "@changesets/cli": "^2.30.0",
74 "@faker-js/faker": "^10.1.0",
75 "@stylistic/eslint-plugin": "^5.10.0",
76 "@tanstack/ai": "workspace:*",
77 "@tanstack/ai-grok-build": "workspace:*",
78 "@tanstack/ai-sandbox": "workspace:*",
79 "@tanstack/ai-sandbox-docker": "workspace:*",
80 "@tanstack/typedoc-config": "0.3.5",
81 "@tanstack/vite-config": "0.6.0",
82 "@types/node": "^24.10.1",
83 "@typescript/typescript6": "6.0.2",
84 "eslint-plugin-unused-imports": "^4.3.0",
85 "happy-dom": "^20.14.6",
86 "kiira": "0.6.0",
87 "knip": "^6.26.0",
88 "markdown-link-extractor": "^4.0.3",
89 "nx": "23.3.2",
90 "oxfmt": "^0.59.0",
91 "oxlint": "^1.89.0",
92 "oxlint-plugin-eslint": "^1.89.0",
93 "oxlint-tsgolint": "^7.0.2004",
94 "premove": "^4.0.0",
95 "publint": "^0.3.15",
96 "sherif": "^1.9.0",
97 "tinyglobby": "^0.2.17",
98 "tsx": "^4.23.15",
99 "typescript": "7.0.2",
100 "vite": "^8.3.8",
101 "vitest": "^4.1.12"
102 }