Skip to content

Commit d79bbda

Browse files
committed
chore(deps): upgrade vite-plus to 0.2.1
v0.2.1 consumes upstream Vitest directly; the @voidzero-dev/vite-plus-test wrapper is removed and vitest (4.1.9) now arrives transitively through vite-plus. No source changes needed since all tests already import from the stable vite-plus/test API. Reinstall drops the wrapper from the lockfile and resolves to a single vitest version. CI: handle vp 0.2.x's default minimumReleaseAge supply-chain gate, which rejects the freshly published 0.2.1 packages in the build job's repo-root `vp install`. vp's lockfile verifier reads the exclude list only from pnpm-workspace.yaml, but a pnpm-workspace.yaml at the repo root makes vp treat the root as a workspace root and breaks the in-repo test-project fixtures the other jobs create. So the build job generates a gitignored pnpm-workspace.yaml with the exclude just-in-time (it is the only job that installs at the repo root and it creates no test-project); the file is gitignored so the prepare hook can regenerate it locally without it being committed.
1 parent a268c9c commit d79bbda

5 files changed

Lines changed: 660 additions & 338 deletions

File tree

.github/workflows/test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,19 @@ jobs:
548548
steps:
549549
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
550550

551+
# vp's default minimumReleaseAge supply-chain policy rejects packages
552+
# published within the last 24h. When this repo's own vite-plus dependency
553+
# is bumped to a brand-new release, the `vp install` below fails the
554+
# lockfile verification (ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION). Exempt
555+
# the Vite+ toolchain via the exclude list vp's verifier reads from
556+
# pnpm-workspace.yaml. This file is generated here (and gitignored) rather
557+
# than committed: a pnpm-workspace.yaml at the repo root makes vp treat the
558+
# root as a workspace root, which breaks the in-repo test-project fixtures
559+
# the other jobs create (vp run/install resolve to the root). Only this
560+
# job runs `vp install` at the repo root, and it creates no test-project.
561+
- name: Exempt the Vite+ toolchain from the release-age gate
562+
run: printf 'minimumReleaseAgeExclude:\n - vite-plus\n - "@voidzero-dev/vite-plus-*"\n' > pnpm-workspace.yaml
563+
551564
- name: Setup Vite+ with cache
552565
uses: ./
553566
id: setup

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
node_modules/
2+
3+
# Auto-generated by `vp config` (prepare hook) to hold transient
4+
# minimumReleaseAgeExclude entries for freshly published packages. Must not be
5+
# committed: a pnpm-workspace.yaml at the repo root makes vp treat the root as a
6+
# workspace root, which breaks the in-repo `test-project/` fixtures the CI
7+
# workflow creates (e.g. `vp run` resolves to the root and can't find the task).
8+
pnpm-workspace.yaml

dist/index.mjs

Lines changed: 26 additions & 26 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"devDependencies": {
2424
"@types/node": "^24.0.0",
2525
"typescript": "^6.0.0",
26-
"vite-plus": "^0.1.23"
26+
"vite-plus": "0.2.1"
2727
},
2828
"packageManager": "pnpm@11.4.0"
2929
}

0 commit comments

Comments
 (0)