Skip to content

refactor(pm): read pnpm pmOnFail from vt_workspace - #3718

Draft
fengmk2 wants to merge 2 commits into
mainfrom
refactor/pm-on-fail-from-vt-workspace
Draft

fengmk2 wants to merge 2 commits into
mainfrom
refactor/pm-on-fail-from-vt-workspace

Conversation

@fengmk2

@fengmk2 fengmk2 commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

vp --version reads pmOnFail from pnpm-workspace.yaml to choose which pnpm version it reports. It now reads the setting through vt_workspace (voidzero-dev/vite-task#1064), which reuses the parse from workspace member lookup. vp_pm_cli no longer parses the YAML itself and drops its direct serde_norway dependency. A valid PNPM_CONFIG_PM_ON_FAIL still overrides the workspace setting, and OnFail::parse still reads the value.

This bumps vite-task from 69ff9fcb to 2d01e63e (changelog diff).

Draft until voidzero-dev/vite-task#1064 merges. The vite-task pin then moves to its merge commit on main.

pnpm_policy_override now reads pmOnFail through vt_workspace's
PnpmWorkspaceFile::pm_on_fail(), which reuses the parse from workspace
member lookup. vp_pm_cli drops its local Settings struct and its direct
serde_norway dependency. A valid PNPM_CONFIG_PM_ON_FAIL still takes
priority over the workspace setting, and OnFail::parse still reads the
value.

Bumps vite-task to d9755bd8 for the new accessor.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Cloudflare builds and deploys previews for this pull request. Learn more about Cloudflare previews.

Worker Status Deployment Commit
viteplus-dev Deployed Preview b43d9c0

Updated: Dec 6, 2026, 08:54 UTC | Dashboard

@github-actions

github-actions Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

CLI artifact sizes (b43d9c0)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.55 MiB 2.55 MiB 0 B (0.00%)
packages/core/dist Directory total 4.29 MiB 4.29 MiB 0 B (0.00%)
Combined package dist Directory total 6.84 MiB 6.84 MiB 0 B (0.00%)
vp (Linux x64) Binary 9.32 MiB 9.34 MiB +20.00 KiB (+0.21%)
vp (Linux x64) gzip -9 4.26 MiB 4.28 MiB +18.77 KiB (+0.43%)
NAPI (Linux x64) Binary 38.00 MiB 38.04 MiB +44.00 KiB (+0.11%)
NAPI (Linux x64) gzip -9 15.33 MiB 15.36 MiB +29.56 KiB (+0.19%)
vp (macOS ARM64) Binary 6.12 MiB 6.14 MiB +16.22 KiB (+0.26%)
vp (macOS ARM64) gzip -9 3.65 MiB 3.67 MiB +19.02 KiB (+0.51%)
NAPI (macOS ARM64) Binary 44.39 MiB 44.44 MiB +48.45 KiB (+0.11%)
NAPI (macOS ARM64) gzip -9 19.42 MiB 19.44 MiB +19.65 KiB (+0.10%)
vp (Windows x64) Binary 7.28 MiB 7.29 MiB +16.50 KiB (+0.22%)
vp (Windows x64) gzip -9 3.34 MiB 3.35 MiB +13.13 KiB (+0.38%)
NAPI (Windows x64) Binary 33.88 MiB 33.93 MiB +46.00 KiB (+0.13%)
NAPI (Windows x64) gzip -9 14.04 MiB 14.06 MiB +24.83 KiB (+0.17%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.09 KiB 7.09 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.70 MiB 4.74 MiB +33.50 KiB (+0.70%)
Installer (Windows x64) gzip -9 2.25 MiB 2.28 MiB +24.31 KiB (+1.05%)

Windows treats PNPM_CONFIG_PM_ON_FAIL and pnpm_config_pm_on_fail as one
variable, so clearing the lowercase name after setting the uppercase one
removed the policy. Also moves the vite-task pin to 2d01e63e, the
current head of voidzero-dev/vite-task#1064.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant