Skip to content

fix: add pnpm-workspace.yaml to approve build scripts for native deps - #4230

Merged
Jocs merged 1 commit into
developfrom
worktree-mighty-jingling-cook
May 16, 2026
Merged

Jocs merged 1 commit into
developfrom
worktree-mighty-jingling-cook

Conversation

@Jocs

@Jocs Jocs commented May 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • pnpm 11 requires explicit approval of dependency build scripts via allowBuilds in pnpm-workspace.yaml
  • Without this file, pnpm walks up to the parent directory and finds placeholder values, causing ERR_PNPM_IGNORED_BUILDS for ced, esbuild, keytar, native-keymap, and electron-winstaller
  • Adds pnpm-workspace.yaml with allowBuilds: true for all five packages so pnpm install completes cleanly

Test plan

  • Run pnpm install and verify no ERR_PNPM_IGNORED_BUILDS warning appears
  • Run pnpm run dev and verify the app starts normally

🤖 Generated with Claude Code

pnpm 11 requires explicit approval of dependency build scripts via
allowBuilds in pnpm-workspace.yaml. Without this file, pnpm walks up
to the parent directory and finds placeholder values, causing
ERR_PNPM_IGNORED_BUILDS for ced, esbuild, keytar, native-keymap, and
electron-winstaller.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Copilot AI review requested due to automatic review settings May 16, 2026 14:34
@Jocs
Jocs merged commit 93ec404 into develop May 16, 2026
10 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to make pnpm install succeed under newer pnpm “build script approval” behavior by adding a repository-local pnpm-workspace.yaml that explicitly allows build scripts for a small set of native / build-time dependencies.

Changes:

  • Add pnpm-workspace.yaml to stop pnpm from inheriting/using parent-directory workspace policy.
  • Explicitly approve dependency build scripts for ced, esbuild, keytar, native-keymap, and electron-winstaller.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown
Contributor

Build artifacts for PR #4230:

Run: https://github.com/marktext/marktext/actions/runs/25964551601

Artifact Size Link
marktext-linux 592.0 MB Download
marktext-macos-x64 532.2 MB Download
marktext-windows 271.9 MB Download
marktext-macos-arm64 531.9 MB Download

@Jocs Jocs mentioned this pull request May 18, 2026
@Jocs
Jocs deleted the worktree-mighty-jingling-cook branch May 18, 2026 09:32
thimbleberrysystems pushed a commit to thimbleberrysystems/WordBird that referenced this pull request Jun 21, 2026
…marktext#4230)

pnpm 11 requires explicit approval of dependency build scripts via
allowBuilds in pnpm-workspace.yaml. Without this file, pnpm walks up
to the parent directory and finds placeholder values, causing
ERR_PNPM_IGNORED_BUILDS for ced, esbuild, keytar, native-keymap, and
electron-winstaller.

Co-authored-by: Claude Sonnet 4.6 <[email protected]>
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