mirror of https://github.com/mifi/lossless-cut
Disable install scripts by default, opt in per package
Yarn 4.18's default is `enableScripts: false`; the version bump kept the old behaviour by setting it back to true, which re-enables arbitrary install-time code execution for every package in the tree. Turn it off again and opt in only where a package actually has to build something. The list is exactly what Yarn reports as YN0004 with scripts disabled: @parcel/watcher, @swc/core, and esbuild (keyed by bare name so it covers both 0.25.12 and 0.27.7). electron and sharp are deliberately absent — electron ships no lifecycle scripts and sharp resolves prebuilt binaries through optional platform packages, so neither needs to build. The workspace's own `postinstall` (electron-builder install-app-deps) is unaffected: enableScripts only governs dependencies. Verified with a from-scratch `yarn install --immutable`, the full `yarn check`, and an `electron-builder --linux dir` pack. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BtCagWFcr4MLHQD4zkPVf5pull/3049/head
parent
322e4bcca3
commit
7dd2d680a9
Loading…
Reference in New Issue