Commit 0fecc75
committed
fix(migrate): write pnpm catalog for standalone pnpm 9.5-10.6.1 projects
A standalone (non-monorepo) migration on pnpm 9.5.0-10.6.1 rewrote the toolchain
edges to `catalog:` (catalogs are supported from 9.5.0) but never wrote the
catalog entries to pnpm-workspace.yaml: that write was gated on
`usePnpmWorkspaceYaml` (settings support, >= 10.6.2), so the install could not
resolve `catalog:` and failed.
Gate the pnpm-workspace.yaml write on `usePnpmWorkspaceYaml || supportCatalog`
and pass `usePnpmWorkspaceYaml` as the `writeWorkspaceSettings` flag, so a
9.5-10.6.1 project gets a catalog-only file (settings stay in package.json),
mirroring the monorepo orchestrator. 452cbf6 fixed the existing-Vite+ bootstrap
path; this covers the standalone new-project path.
Removes the now-redundant `shouldRewritePnpmWorkspaceYaml` state (it only ever
mirrored `usePnpmWorkspaceYaml`). Adds a reproducing test.
Claude-Session: https://claude.ai/code/session_01DQhS6o1fyQd1yjiee6W8jR1 parent ab9a0b3 commit 0fecc75
2 files changed
Lines changed: 37 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4439 | 4439 | | |
4440 | 4440 | | |
4441 | 4441 | | |
| 4442 | + | |
| 4443 | + | |
| 4444 | + | |
| 4445 | + | |
| 4446 | + | |
| 4447 | + | |
| 4448 | + | |
| 4449 | + | |
| 4450 | + | |
| 4451 | + | |
| 4452 | + | |
| 4453 | + | |
| 4454 | + | |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
| 4461 | + | |
| 4462 | + | |
| 4463 | + | |
| 4464 | + | |
| 4465 | + | |
| 4466 | + | |
| 4467 | + | |
| 4468 | + | |
| 4469 | + | |
| 4470 | + | |
4442 | 4471 | | |
4443 | 4472 | | |
4444 | 4473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| |||
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
283 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
284 | 288 | | |
285 | 289 | | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
290 | | - | |
| 294 | + | |
291 | 295 | | |
292 | 296 | | |
293 | 297 | | |
| |||
0 commit comments