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