Skip to content

feat!: default derefSymlinks to true#1829

Merged
erickzhao merged 1 commit into
mainfrom
feat/deref-symlinks
Sep 17, 2025
Merged

feat!: default derefSymlinks to true#1829
erickzhao merged 1 commit into
mainfrom
feat/deref-symlinks

Conversation

@erickzhao

@erickzhao erickzhao commented Sep 10, 2025

Copy link
Copy Markdown
Member

BREAKING CHANGE: defaults to derefSymlinks: true if the value isn't explicitly defined.

This PR also removes the second layer of logic that defaults this value via the CLI (instead specifying it in the core API).

@erickzhao erickzhao requested a review from a team as a code owner September 10, 2025 19:49
@dsanders11

Copy link
Copy Markdown
Member

Can we add BREAKING CHANGE: to the commit message body just for completeness?

@erickzhao erickzhao merged commit 32c0639 into main Sep 17, 2025
11 checks passed
@erickzhao erickzhao deleted the feat/deref-symlinks branch September 17, 2025 22:30
@continuous-auth

Copy link
Copy Markdown

🎉 This PR is included in version 19.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

goosewobbler added a commit to webdriverio/desktop-mobile that referenced this pull request May 29, 2026
…iles, not store symlinks

ROOT CAUSE of the 'Could not find Electron app built with Electron Forge!' flake: @electron/packager@18.4.4 (the version forge 7.11 bundles) defaults derefSymlinks=false, so packaging a pnpm-installed app copies the symlinked node_modules (pointing into the store, outside the package) rather than the real files — a copy that fails flakily on CI filesystems (no binary produced), while happening to work on local macOS. @electron/packager v19 flips this default to true (electron/packager#1829); the option already exists in 18.4.4, so set derefSymlinks:true in both forge fixtures' packagerConfig to get the v19 behavior without a 2-major bump. Reverts the A/B direct-packager scaffolding on the cjs fixture.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants