|
8 | 8 | "packageManager": "pnpm@10.17.0", |
9 | 9 | "type": "module", |
10 | 10 | "scripts": { |
11 | | - "clean": "pnpm --filter \"./packages/**\" run clean", |
| 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", |
12 | 33 | "test": "pnpm run test:ci", |
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", |
| 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", |
15 | 36 | "test:eslint": "nx affected --target=test:eslint --exclude=examples/**", |
16 | 37 | "test:format": "pnpm run prettier --check", |
17 | | - "test:sherif": "sherif", |
| 38 | + "test:knip": "knip --max-issues=33", |
18 | 39 | "test:lib": "nx affected --targets=test:lib --exclude=examples/**", |
19 | 40 | "test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib", |
20 | | - "test:build": "nx affected --target=test:build --exclude=examples/**", |
| 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", |
21 | 43 | "test:types": "nx affected --targets=test:types --exclude=examples/**", |
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" |
| 44 | + "test:verify-links": "node scripts/verify-links.ts", |
| 45 | + "watch": "pnpm run build:all && nx watch --all -- pnpm run build:all" |
36 | 46 | }, |
37 | 47 | "nx": { |
38 | 48 | "includedScripts": [ |
39 | | - "test:docs", |
40 | 49 | "test:knip", |
41 | 50 | "test:sherif" |
42 | 51 | ] |
43 | 52 | }, |
| 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 | + ], |
44 | 62 | "devDependencies": { |
45 | 63 | "@changesets/cli": "^2.29.8", |
46 | 64 | "@faker-js/faker": "^10.1.0", |
| 65 | + "@size-limit/preset-small-lib": "^11.2.0", |
47 | 66 | "@svitejs/changesets-changelog-github-compact": "^1.2.0", |
48 | 67 | "@tanstack/eslint-config": "0.3.3", |
49 | 68 | "@tanstack/typedoc-config": "0.3.1", |
|
60 | 79 | "prettier-plugin-svelte": "^3.4.0", |
61 | 80 | "publint": "^0.3.15", |
62 | 81 | "sherif": "^1.9.0", |
| 82 | + "size-limit": "^11.2.0", |
63 | 83 | "tinyglobby": "^0.2.15", |
64 | 84 | "typescript": "5.9.3", |
65 | 85 | "vite": "^7.2.4", |
66 | 86 | "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 | + } |
67 | 103 | } |
68 | 104 | } |
0 commit comments