Skip to content

chore: resolve pnpm allowBuilds placeholders - #224

Merged
AdirAmsalem merged 1 commit into
mainfrom
conductor/release-sdks-1
Oct 14, 2026
Merged

AdirAmsalem merged 1 commit into
mainfrom
conductor/release-sdks-1

Conversation

@AdirAmsalem

@AdirAmsalem AdirAmsalem commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Description

#207 accidentally committed pnpm 11's auto-generated allowBuilds placeholders (esbuild: set this to true or false, …). pnpm 11 treats them as unresolved and fails with ERR_PNPM_IGNORED_BUILDS, so anyone on a current pnpm can't pnpm install or pnpm exec (this broke pnpm exec bumpp during the v0.2.11 release). CI is unaffected because it pins pnpm 10.7.1.

This sets all four to false, which is what pnpm 10 has always done here (builds skipped by default):

Package Script Why it isn't needed
msw postinstall only copies mockServiceWorker.js into msw.workerDirectory, which no package configures
sharp install builds from source only when no prebuilt @img/sharp-* binary exists
esbuild postinstall binary-validation/optimisation; the prebuilt @esbuild/<platform> package is used either way
workerd postinstall same as esbuild, via @cloudflare/workerd-<platform>

Testing

Fresh pnpm install --frozen-lockfile in clean worktrees:

  • pnpm 11.20.0: passes (previously ERR_PNPM_IGNORED_BUILDS), and the yaml isn't rewritten
  • pnpm 10.7.1 (CI): passes

With no build scripts run (pnpm 11 install):

  • packages/sdk: build, test:package, lint, format:check, typecheck, test all pass
  • examples/react-vite: vite build passes (esbuild)
  • examples/hono-edge: wrangler --version works and resolves the prebuilt workerd binary

Note

Low Risk
Workspace-only pnpm config change; no application or runtime logic is modified.

Overview
Replaces pnpm 11’s auto-generated allowBuilds placeholder strings in pnpm-workspace.yaml with explicit false for esbuild, msw, sharp, and workerd.

That matches pnpm 10’s default (skip those install/postinstall scripts) and unblocks pnpm install / pnpm exec on pnpm 11, which otherwise fails with ERR_PNPM_IGNORED_BUILDS when the placeholders are left unresolved.

Reviewed by Cursor Bugbot for commit eaf44cc. Bugbot is set up for automated code reviews on this repo. Configure here.

pnpm 11 wrote "set this to true or false" placeholders into
pnpm-workspace.yaml and they were committed in #207. pnpm 11 rejects them
(ERR_PNPM_IGNORED_BUILDS), so `pnpm install` / `pnpm exec` fail locally.

Set all four to false, matching what pnpm 10 (CI) has always done. None of
the scripts are needed: msw's postinstall only copies the worker into a
configured `msw.workerDirectory` (none set), sharp ships prebuilt @img
binaries, and esbuild/workerd resolve their prebuilt platform packages.
@pkg-pr-new

pkg-pr-new Bot commented Oct 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@decartai/sdk@224

commit: eaf44cc

@AdirAmsalem
AdirAmsalem merged commit 1c621b4 into main Oct 14, 2026
5 checks passed
@AdirAmsalem
AdirAmsalem deleted the conductor/release-sdks-1 branch October 14, 2026 06:30
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.

1 participant