Commit 9de13c2
authored
templates: bump plugin template to latest payload version (#16305)
### What?
Bump the plugin template's pinned Payload package versions from `3.37.0`
to `3.82.1` and add it to `generate-template-variations.ts` so future
releases bump it automatically.
### Why?
Audit against the current Payload version (`3.82.1`):
| Template | Payload version | Status |
|---|---|---|
| `blank`, `ecommerce`, `website` | `workspace:*` | ✅ auto-bumped |
| `with-cloudflare-d1`, `with-postgres`, `with-vercel-*` | `3.82.1` | ✅
bumped via release workflow / manual PRs |
| `plugin` | `3.37.0` | ❌ stale (~45 patches behind) |
The plugin template is not a standard app-template variation, so
`generate-template-variations.ts` skipped it entirely. The post-release
workflow therefore never touched it, and the recent manual bump PRs
(#16212, #16229) only covered app templates.
### How?
1. `templates/plugin/package.json` — bump `payload` + `@payloadcms/*`
devDeps from `3.37.0` → `3.82.1`, bump `@payloadcms/eslint-config` from
`3.9.0` → `3.28.0`, bump `peerDependencies.payload` from `^3.37.0` →
`^3.82.1`.
2. `tools/scripts/src/generate-template-variations.ts`:
- Allow `--template plugin` through the filter (plugin isn't a variation
entry).
- After the main loop, call a new `bumpPluginTemplate()` helper which
resolves the latest `payload` version from npm and reuses
`bumpPackageJson`.
- Extend `bumpPackageJson` to also bump `peerDependencies` entries,
writing `^<version>` so plugin consumers can install compatible
patch/minor updates (exact pins would be too strict for a peer dep).
Verified locally with `pnpm script:gen-templates --template plugin` —
picked up the latest npm version (`3.83.0`), bumped devDeps, wrote
`^3.83.0` to peer deps, and preserved `@payloadcms/eslint-config` via
the existing `DO_NOT_BUMP` list.1 parent 500e39d commit 9de13c2
2 files changed
Lines changed: 52 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| 223 | + | |
| 224 | + | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
| |||
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
376 | 385 | | |
377 | 386 | | |
378 | 387 | | |
| |||
542 | 551 | | |
543 | 552 | | |
544 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
545 | 567 | | |
546 | 568 | | |
547 | 569 | | |
548 | 570 | | |
549 | 571 | | |
550 | 572 | | |
551 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
552 | 593 | | |
553 | 594 | | |
554 | 595 | | |
| |||
0 commit comments