Commit e50937c
fix(migration): preapprove vitest family in generated .yarnrc.yml
Yarn 4 hardened mode (auto-enabled for public-PR installs) quarantines
packages younger than `npmMinimalAgeGate`, so a freshly published vitest
pin makes `yarn install` fail for projects Vite+ creates/migrates — the
four `vp create … (yarn)` CI jobs hit this on the same-day 4.1.9 release.
Add `npmPreapprovedPackages: [vitest, '@vitest/*']` to the generated
`.yarnrc.yml` (rewriteYarnrcYml, shared by create + migrate) so the
Vite+-managed vitest family is exempt from the age gate regardless of
release age. The `@vitest/*` glob also covers the optional
`@vitest/browser-*` peers that are not in the override set. Guarded by
`!doc.has(...)` so it never clobbers a user's existing list.
Regenerates the migration-monorepo-yarn4 global snap (only fixture that
captures `.yarnrc.yml`).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 7ed01a5 commit e50937c
2 files changed
Lines changed: 13 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2261 | 2261 | | |
2262 | 2262 | | |
2263 | 2263 | | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
2264 | 2274 | | |
2265 | 2275 | | |
2266 | 2276 | | |
| |||
0 commit comments