ci: move pnpm build-script allowlist to pnpm-workspace.yaml
Some checks failed
deploy / Build prerendered web (push) Failing after 2m13s
deploy / Deploy web to oolon (push) Has been skipped
deploy / Build api + worker (static musl) (push) Successful in 6m35s
deploy / Deploy moments-worker to frootmig (push) Successful in 54s
deploy / Deploy moments-api to nikola (push) Successful in 56s
Some checks failed
deploy / Build prerendered web (push) Failing after 2m13s
deploy / Deploy web to oolon (push) Has been skipped
deploy / Build api + worker (static musl) (push) Successful in 6m35s
deploy / Deploy moments-worker to frootmig (push) Successful in 54s
deploy / Deploy moments-api to nikola (push) Successful in 56s
CI's newer pnpm warns "the pnpm field in package.json is no longer read" and still failed build-web with ERR_PNPM_IGNORED_BUILDS. The settings moved to pnpm-workspace.yaml in pnpm 10+. Put onlyBuiltDependencies (esbuild, @swc/core) and ignoredBuiltDependencies (react-vertical-timeline-component) there and drop the dead package.json field. Verified with a cold `pnpm install --frozen-lockfile`: postinstalls run, no error, lockfile unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X7zF7Kf4JqDwa6M8Qgge9M
This commit is contained in:
10
ui/pnpm-workspace.yaml
Normal file
10
ui/pnpm-workspace.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
# pnpm 10+ no longer reads build-script settings from package.json's "pnpm"
|
||||
# field — they live here. esbuild and @swc/core need their postinstall to place
|
||||
# native binaries for vite; allow those, and explicitly ignore the harmless
|
||||
# react-vertical-timeline-component postinstall, so a fresh CI install doesn't
|
||||
# fail with ERR_PNPM_IGNORED_BUILDS.
|
||||
onlyBuiltDependencies:
|
||||
- '@swc/core'
|
||||
- esbuild
|
||||
ignoredBuiltDependencies:
|
||||
- react-vertical-timeline-component
|
||||
Reference in New Issue
Block a user