mirror of https://github.com/mifi/lossless-cut
Drop the dependenciesMeta build exceptions
All three turned out to be unnecessary. They were added because Yarn listed them as having build scripts, not because the scripts do anything this project needs: - @parcel/watcher's install script is `node scripts/build-from-source.js`, whose entire body is guarded by `npm_config_build_from_source === 'true'`. Nothing sets that, so it is a literal no-op; the native binding comes from the prebuilt @parcel/watcher-<platform> optional dependency. - @swc/core's postinstall only validates that the native binding loads and, if it does not, shells out to `npm install @swc/wasm` as a fallback. With the optional dependency present it returns immediately. - esbuild's postinstall skips its one real action (relinking the bin shim to the native binary) when `isYarn()`, which is always true here. What remains is a version assertion between esbuild and @esbuild/<platform>, both of which the lockfile already pins together. Verified by loading each one after an install with scripts disabled: the esbuild JS API and CLI, the @swc/core native binding, and @parcel/watcher's subscribe all work. Full `yarn check` and an `electron-builder --linux dir` pack pass with no exceptions granted. The YN0004 warnings that remain are informational. CONTRIBUTING now says to read the script before granting an exception rather than reflexively adding one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BtCagWFcr4MLHQD4zkPVf5pull/3049/head
parent
7dd2d680a9
commit
e2e65423e4
Loading…
Reference in New Issue