mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 18:36:15 -08:00
All six packaged build jobs failed on the previous commit with `[embedded-mpv] Unable to resolve @electron/node-gyp.` `build-embedded-mpv.js` scanned `node_modules/.pnpm` for an `@electron+node-gyp@*` directory. That package was never declared here — it was only in the tree as a transitive of `@electron/rebuild` 3. rebuild 4, which electron-builder 26.15.3 pulls in, switched to upstream `node-gyp@^12.2.0` and dropped the fork, so the scan found nothing. Follow the same move: declare `node-gyp` as a devDependency and resolve its bin with `require.resolve`. That also removes the pnpm store-layout scan, which is what made a transitive dependency look like a build input in the first place. The Electron target still comes from the `npm_config_*` env, not from which node-gyp binary runs. Verified by building the addon for real against Electron 41 (`IPTVNATOR_EMBEDDED_MPV_ALLOW_HOMEBREW=1 nx run electron-backend:build-embedded-mpv` -> `gyp info ok`, `embedded_mpv.node`, frame reader and helper all produced). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>