-
-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forge cannot correctly detect working dir when use config file #3028
Comments
Hey @XMLHexagram, just want to make sure I understand your repro case correctly: you're creating multiple Forge projects inside of a monorepo, and each Forge project is trying to use the root directory package.json file instead of their individual |
Well, the same, and they will use their The bug cause I review forge's source code and find |
Also I think #3019 is the same problem. |
Fixed in b5d0587 |
Pre-flight checklist
Electron Forge version
6.0.0-beta.70
Electron version
21.2.0
Operating system
macOS 13.0
Last known working Electron Forge version
No response
Expected behavior
A project has forge.config.ts but don't have
config.forge
in package.json can be treat as forge working dir.Actual behavior
But not. Forge will look upper dir for packages.json. If you are use mono repo, forge will use package.json in project root.
Steps to reproduce
Forge demo
yarn create electron-app my-new-app --template=typescript-webpack
and make sure upper dir has an package.json file can reproduce this issue.Additional information
No response
The text was updated successfully, but these errors were encountered: