Skip to content

chore(workspace): approve build scripts for native dependencies#397

Open
damiankraskocoaching wants to merge 1 commit into
nexmoe:mainfrom
damiankraskocoaching:chore/approve-build-scripts
Open

chore(workspace): approve build scripts for native dependencies#397
damiankraskocoaching wants to merge 1 commit into
nexmoe:mainfrom
damiankraskocoaching:chore/approve-build-scripts

Conversation

@damiankraskocoaching
Copy link
Copy Markdown

Summary

  • Added allowBuilds section to pnpm-workspace.yaml approving build scripts for all native/compiled packages
  • Updated pnpm-lock.yaml to reflect the resolved dependency tree after a clean install

Why

Without the allowBuilds configuration, pnpm v11+ blocks postinstall build scripts for packages like electron, better-sqlite3, sharp, esbuild, @sentry/cli, and spawn-sync. This prevents the workspace from being installed from scratch.

Reviewer notes

The pnpm-workspace.yaml changes are minimal and intentional - each entry explicitly opts in to native build execution. The lockfile diff reflects a clean resolution pass.

Generated with Claude Code

Enable pnpm to run postinstall build scripts for packages that require
native compilation: electron, better-sqlite3, sharp, esbuild, sentry/cli,
and spawn-sync. Without this, pnpm blocks their build steps and the
workspace cannot be installed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 268f945b21

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread pnpm-lock.yaml
tar: '>=7.5.11 <8'
esbuild: '>=0.25.0'
'@tootallnate/once': '>=3.0.1'

importers:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore lockfile overrides to keep frozen install working

With the overrides block removed here, the lockfile no longer matches the pnpm.overrides still declared in package.json; in this tree pnpm install --frozen-lockfile fails immediately with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH. This breaks CI and fresh installs that use the committed lockfile, so the lockfile needs to be regenerated with the package overrides preserved rather than resolved without them.

Useful? React with 👍 / 👎.

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