build: silence pnpm 10 'ignored build scripts: esbuild' warning#5
Merged
Conversation
…warning) pnpm 10 no longer runs dependencies' build scripts unless explicitly approved, so every install logged: Warning: Ignored build scripts: esbuild@... The builds still succeed (esbuild's binary ships via its @esbuild/<platform> optional dependency, not the postinstall), so this was a benign warning — but it dirtied the Vercel build log (and watcher's CI log). Approve esbuild via pnpm.onlyBuiltDependencies in each standalone project (site, watcher, video — no workspace, separate lockfiles). Approval is by package name, covering all pinned esbuild versions. Lockfiles unchanged. Verified: pnpm install in all three → no ignored-scripts warning; site build + watcher tests (25) green.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Every pnpm install logged a warning (visible in the Vercel build log and watcher's CI log):
Why it happened (and why it was benign)
pnpm 10 stopped running dependencies' build scripts unless explicitly approved. esbuild has a
postinstall(install.js), so it got flagged. The builds still succeeded because esbuild's actual binary ships via its@esbuild/<platform>optional dependency, not the postinstall — so the script being skipped was harmless. Hence: a warning, never an error.Fix
Approve esbuild's build script via
pnpm.onlyBuiltDependenciesin each standalone project (site,watcher,video— there's no workspace, each has its own lockfile). Approval is by package name, so it covers every pinned esbuild version (watcherhas 0.21.5 + 0.28.1).Verification
pnpm installin all three → no ignored-scripts warning (esbuild postinstall now runs)sitebuild green ·watchertests green (25/25)After merge, the Vercel production build for
mainwill be 0 errors, 0 warnings.