Open mmarczell-graphisoft opened 1 year ago
anyupdate?
I'm trying to reuse code between web and desktop. This, to me, is Electron's core value proposition. I have created a monorepo setup to facilitate this:
/
package.json
(would use npm workspaces
but Electron Forge doesn't support it)core/
package.json
desktop-app/
package.json
(includes ../core
as a dependency)website/
(includes a demo of the library, which is basically the full app embedded in a webpage)package.json
Packaging with a relative path dependency works on Windows, but fails on macOS and Linux.
As of @electron-forge/cli@7.4.0
, the error is swallowed, and the CLI exits unceremoniously. In previous versions, the error showed up when the CLI exited. The error can be surfaced on 7.4.0 by using DEBUG=electron-packager
.
Pre-flight checklist
Electron Forge version
6.1.1
Electron version
v24.3.0
Operating system
macOS 13.3.1
Last known working Electron Forge version
No response
Expected behavior
npx electron-forge make
succeeds.Actual behavior
It outputs an error message saying
Steps to reproduce
Have a dependency in package.json specified by a relative path like this: (see npm docs)
Run
npx electron-forge make
.Additional information
No response