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

pnpm-workspace.yaml

192 lines7.9 KB

1cleanupUnusedCatalogs: true
2linkWorkspacePackages: true
3preferWorkspacePackages: true
4blockExoticSubdeps: true
5trustPolicy: 'no-downgrade'
6minimumReleaseAge: 1440
7minimumReleaseAgeExclude:
8 - 'kiira@0.6.0' # root dev dependency (TS7-native engine); freshly published
9 - 'kiira-core@0.6.0' # transitive dependency of kiira@0.6.0
10 # Working closely with the aimock team; the e2e suite often needs fresh
11 # releases of this test-only mock as it tracks provider SDK changes.
12 - '@copilotkit/aimock'
13 # Reactor JS SDK; the example app needs the current 3.x client.
14 - '@reactor-team/js-sdk'
15 # fal WMA client for H3 Max Director in the media example.
16 - '@fal-ai/client'
17 # Build-time devDep; 0.6.0 is the release carrying the dts-5/Vite-8 fix
18 # (TanStack/config#403) this toolchain migration depends on.
19 - '@tanstack/vite-config@0.6.0'
20 # @tanstack/ai-octane's framework peer + its testing library. Octane
21 # publishes these two in lockstep — @octanejs/testing-library pins an exact
22 # `octane` peer — so they must be excluded together or neither resolves.
23 # Octane releases roughly daily, so the newest pair is essentially always
24 # inside the 24h window.
25 - 'octane@0.1.17'
26 - '@octanejs/testing-library@0.1.14'
27 # Remix 3 RC and its @remix-run/* subpackages. Peer of @tanstack/ai-remix.
28 # Fresh RCs fail the 24h age gate, including nested @remix-run packages.
29 - 'remix'
30 - '@remix-run/assert'
31 - '@remix-run/assets'
32 - '@remix-run/async-context-middleware'
33 - '@remix-run/auth'
34 - '@remix-run/auth-middleware'
35 - '@remix-run/cli'
36 - '@remix-run/compression-middleware'
37 - '@remix-run/cookie'
38 - '@remix-run/cop-middleware'
39 - '@remix-run/cors-middleware'
40 - '@remix-run/csrf-middleware'
41 - '@remix-run/data-schema'
42 - '@remix-run/data-table'
43 - '@remix-run/data-table-mysql'
44 - '@remix-run/data-table-postgres'
45 - '@remix-run/data-table-sqlite'
46 - '@remix-run/fetch-proxy'
47 - '@remix-run/fetch-router'
48 - '@remix-run/file-storage'
49 - '@remix-run/file-storage-s3'
50 - '@remix-run/form-data-middleware'
51 - '@remix-run/form-data-parser'
52 - '@remix-run/fs'
53 - '@remix-run/headers'
54 - '@remix-run/html-template'
55 - '@remix-run/lazy-file'
56 - '@remix-run/logger-middleware'
57 - '@remix-run/method-override-middleware'
58 - '@remix-run/mime'
59 - '@remix-run/multipart-parser'
60 - '@remix-run/node-fetch-server'
61 - '@remix-run/node-hmr'
62 - '@remix-run/node-tsx'
63 - '@remix-run/render-middleware'
64 - '@remix-run/response'
65 - '@remix-run/route-pattern'
66 - '@remix-run/session'
67 - '@remix-run/session-middleware'
68 - '@remix-run/session-storage-memcache'
69 - '@remix-run/session-storage-redis'
70 - '@remix-run/spa'
71 - '@remix-run/static-middleware'
72 - '@remix-run/tar-parser'
73 - '@remix-run/terminal'
74 - '@remix-run/test'
75 - '@remix-run/ui'
76 - '@remix-run/ui-hmr'
77​
78trustPolicyExclude:
79 - 'chokidar@4.0.3' # existing transitive from sass/nitro; latest v4 with v5 available
80 - 'semver@5.7.2' # existing Babel/jscodeshift transitive; latest v5, released years ago
81 - 'semver@6.3.1' # existing Babel transitive; latest v6, released years ago
82 - 'undici-types@6.21.0' # existing @types/node transitive via happy-dom/vitest, types-only
83​
84# pnpm v11 dropped support for these fields in package.json — they must live
85# here. See https://github.com/pnpm/pnpm/releases/tag/v11.0.0.
86overrides:
87 abbrev: ^3.0.0
88​
89# TypeScript 7's `typescript` package no longer ships the JS Compiler API
90# (`ts.sys`, `ts.createProgram`, etc.). These framework tools embed that API,
91# have no TS7 fallback, and don't declare `typescript` themselves — so they
92# resolve the root-hoisted TS7 and crash. Inject the API-complete 6.0.2 shim
93# into their own node_modules so they resolve it before walking up to root.
94packageExtensions:
95 '@sveltejs/package':
96 dependencies:
97 typescript: 'npm:@typescript/typescript6@6.0.2'
98 svelte-check:
99 dependencies:
100 typescript: 'npm:@typescript/typescript6@6.0.2'
101 vue-tsc:
102 dependencies:
103 typescript: 'npm:@typescript/typescript6@6.0.2'
104 # knip drives the TS JS API, which TS7 dropped. Inject the 6.0.2 shim into
105 # its node_modules so it resolves it instead of the root-hoisted TS7. knip's
106 # peer range already caps at `<7`. (kiira 0.6.0 type-checks with the project's
107 # native TS7 compiler directly, so it no longer needs the shim.)
108 knip:
109 dependencies:
110 typescript: 'npm:@typescript/typescript6@6.0.2'
111 # typedoc (pnpm generate-docs, via @tanstack/typedoc-config) imports the
112 # TypeScript JS Compiler API at module load (`ts.SyntaxKind`). TS7 dropped
113 # that API. typedoc 0.28.x supports TS 5–6 only (TS7 support is unreleased,
114 # TypeStrong/typedoc#3098). Inject the 6.0.2 shim into both packages so
115 # typedoc's typescript peer resolves the shim from its parent instead of
116 # walking up to the root-hoisted TS7.
117 typedoc:
118 dependencies:
119 typescript: 'npm:@typescript/typescript6@6.0.2'
120 '@tanstack/typedoc-config':
121 dependencies:
122 typescript: 'npm:@typescript/typescript6@6.0.2'
123 # @analogjs/vite-plugin-angular (ai-angular's vitest transform) declares no
124 # typescript, so it grabs the root-hoisted TS7 and calls JS-API functions
125 # (ts.createIncrementalCompilerHost) that TS7 dropped. Angular also can't run
126 # on TS7 at all, so pin it to 5.9.3 (ai-angular's own version, Angular-
127 # supported) rather than the 6.0.2 shim.
128 '@analogjs/vite-plugin-angular':
129 dependencies:
130 typescript: 5.9.3
131​
132# Keep @types/bun out of pnpm's shared virtual store (node_modules/.pnpm/node_modules).
133# @types/bun (a devDep of @tanstack/ai-isolate-quickjs-bun) globally augments Node/DOM
134# types — notably it redeclares `fetch` with `init: RequestInit | BunFetchRequestInit`,
135# dropping the DOM `preconnect` member. When it's hoisted into the shared store, the
136# phantom `import "bun"` type statements inside unrelated deps (srvx, crossws in the
137# nitro/SSR stack) resolve to it, leaking that augmentation into example apps' `tsc`
138# runs and breaking their `typeof fetch` usage. Excluding it from the shared store
139# keeps it resolvable only by its direct dependent (which links it in its own
140# node_modules), so the Bun types stay scoped to the package that needs them.
141hoistPattern:
142 - '*'
143 - '!@types/bun'
144​
145patchedDependencies:
146 '@changesets/assemble-release-plan@6.0.9': patches/@changesets__assemble-release-plan@6.0.9.patch
147​
148packages:
149 - 'packages/*'
150 - 'packages/ai-code-mode/models-eval'
151 - 'examples/*'
152 - 'examples/react/*'
153 - 'testing/*'
154 - 'codemods'
155 - 'tools/*'
156​
157allowBuilds:
158 # Vite + every transitive bundler-step needs the platform-specific binary.
159 esbuild: true
160 # @google/genai (used by @tanstack/ai-gemini in CI) loads files generated by
161 # protobufjs's postinstall. Its own `preinstall` is a no-op echo and
162 # `prepare` only runs when developing the SDK from a git checkout, so it
163 # has no runtime effect on consumers.
164 protobufjs: true
165 # Expo/Metro reaches this through msgpackr and can use the native extractor.
166 msgpackr-extract: true
167 # Everything below is reachable only from dev scripts (wrangler dev,
168 # examples/ts-code-mode-web), is a perf optimisation with a working JS
169 # fallback, or has a no-op postinstall — none are required for `pnpm test:ci`
170 # to pass. Flip to true case-by-case if a future change relies on the script.
171 '@openrouter/sdk': false
172 '@parcel/watcher': false
173 isolated-vm: false
174 nx: false
175 puppeteer: false
176 sharp: false
177 unrs-resolver: false
178 workerd: false
179 '@google/genai': false
180 lmdb: true
181 # dockerode (@tanstack/ai-sandbox-docker) pulls these only for SSH-based
182 # Docker connections; the local-socket path the provider uses has a working
183 # JS fallback, so their native builds are not required.
184 cpu-features: false
185 ssh2: false
186 # Prisma and better-sqlite3 are peer-resolution artifacts only — no workspace
187 # package depends on them, so nothing imports the generated client or the
188 # native addon and their build scripts have nothing to produce for us.
189 '@prisma/client': false
190 '@prisma/engines': false
191 prisma: false
192 better-sqlite3: false