From 99f23c03e7906ddaf8474d079d03392afc15ad66 Mon Sep 17 00:00:00 2001 From: Adam Higgins Date: Wed, 21 Oct 2026 13:35:43 +0100 Subject: [PATCH] fix(build): make uses the repo's pinned vp, not the global one Co-Authored-By: Claude Opus 5.5 (1M context) --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 48eb3b583176b..04fe2bda27482 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,11 @@ SOURCE_FINGERPRINT = { git rev-parse HEAD; git diff HEAD; git ls-files --others SKIP_BUILD ?= 0 # FORCE=1 lets update-next rebuild even when nothing changed since the last one. FORCE ?= 0 +# The repo's pinned vite-plus, not whatever `vp` is on PATH: an older global +# install can't parse newer task configs and fails to load the task graph. +# Deferred so a fresh checkout falls back to the global one for its first +# install, then picks up the local binary in later recipes. +VP = $(if $(wildcard node_modules/.bin/vp),./node_modules/.bin/vp,vp) .DEFAULT_GOAL := help @@ -98,7 +103,7 @@ deps: ## Run 'vp i' only if pnpm-lock.yaml changed since the last install printf " ok dependencies up to date\n"; \ else \ echo "--> pnpm-lock.yaml changed, running vp i"; \ - vp i; \ + $(VP) i; \ fi update-build-%: deps ## Build version % into release-mock (signed, mock feed, zip) @@ -108,7 +113,7 @@ update-build-%: deps ## Build version % into release-mock (signed, mock feed, zi exit 1; \ fi T3CODE_DESKTOP_IDENTITY="$(IDENTITY)" \ - vp run dist:desktop:artifact \ + $(VP) run dist:desktop:artifact \ --platform mac --target zip --arch $(ARCH) \ --mock-updates --mock-update-server-port $(PORT) \ $(if $(filter 1,$(SKIP_BUILD)),--skip-build,) \