Skip to content

fix: replace placeholder allowBuilds value for @swc/core - #3

Merged
losolio merged 1 commit into
mainfrom
fix/allowbuilds-swc-core
Aug 5, 2026
Merged

fix: replace placeholder allowBuilds value for @swc/core#3
losolio merged 1 commit into
mainfrom
fix/allowbuilds-swc-core

Conversation

@losolio

@losolio losolio commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Problem

pnpm-workspace.yaml shipped an unresolved placeholder:

allowBuilds:
  '@swc/core': set this to true or false

pnpm 11 treats a non-boolean allowBuilds value as undecided, so strictDepBuilds fails a fresh install:

[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: @swc/core@1.15.46

Reproduced in an isolated test project — an explicit boolean, either one, satisfies the check.

Scope

CI (historia-ci.yml) and the Docker build both run pnpm install --ignore-scripts, so the pipeline was never affected. This only broke a fresh local pnpm install.

Why false

@swc/core is only a transitive dep (via webpack and ts-node), its postinstall merely probes for the native binding, and no build path in this repo runs install scripts at all.

Verification

  • pnpm install --frozen-lockfile — passes
  • pnpm --filter @eventuras/historia lint — 0 errors
  • Vipps unit tests — 7/7
  • pnpm --filter '@eventuras/historia^...' build — passes

🤖 Generated with Claude Code

`'@swc/core': set this to true or false` was committed as an unresolved
placeholder. pnpm 11 treats a non-boolean allowBuilds value as undecided,
so `strictDepBuilds` fails a fresh install:

    [ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: @swc/core@1.15.46

An explicit boolean — either one — satisfies the check. `false` is correct
here: @swc/core is only a transitive dep (webpack, ts-node), its postinstall
merely probes for the native binding, and both CI and the Docker build run
`pnpm install --ignore-scripts`, so no build path in this repo runs it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 4, 2026 23:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The change is a minimal, correct YAML fix that resolves the stated pnpm behavior without impacting runtime code paths.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR fixes a pnpm-workspace.yaml configuration error where allowBuilds['@swc/core'] contained a non-boolean placeholder value, which causes pnpm strict dependency build checks to fail on fresh installs.

Changes:

  • Replaced the placeholder allowBuilds value for @swc/core with an explicit boolean (false).
  • Ensures pnpm no longer treats the entry as “undecided”, preventing install failures under strictDepBuilds.
File summaries
File Description
pnpm-workspace.yaml Sets allowBuilds['@swc/core'] to a proper boolean to avoid pnpm strict build-check install failures.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@losolio
losolio merged commit f594708 into main Aug 5, 2026
6 checks passed
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.

2 participants