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

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:
2026-06-25 13:47:59 +03:00
parent 163a36fa08
commit 8e11d02e90
2 changed files with 10 additions and 9 deletions

View File

@@ -33,14 +33,5 @@
"@vitejs/plugin-react-swc": "^3.7.2", "@vitejs/plugin-react-swc": "^3.7.2",
"typescript": "~5.7.0", "typescript": "~5.7.0",
"vite": "^6.0.0" "vite": "^6.0.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"@swc/core",
"esbuild"
],
"ignoredBuiltDependencies": [
"react-vertical-timeline-component"
]
} }
} }

10
ui/pnpm-workspace.yaml Normal file
View 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