-
-
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
fix(packager): throw error when electron-prebuilt-compile is not found #2
fix(packager): throw error when electron-prebuilt-compile is not found #2
Conversation
Good call 👍 Brings up an interesting point though, how hard is it to take an existing project and make Maybe adding an |
if (!/[0-9]/.test(packageJSON.devDependencies['electron-prebuilt-compile'][0])) { | ||
global._resolveError = () => console.error('You must depend on an EXACT version of "electron-prebuilt-compile" not a range'.red); | ||
} | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this else is at the wrong level (hence the test failure). I think it should be on the nested if
statement. And both branches of that nested if statement need to return null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. That was because I resolved a merge conflict incorrectly. I was wondering why the tests failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I had flaky tests already and was about to cry 😆 Quite happy that it caught it 👍
c5090e9
to
d320d9e
Compare
👍 Sounds like something that should be an interactive experience (yeoman-style, I guess) by default. |
I'm going to merge this as it is a flaw in the test 👍 |
Mostly useful for existing Electron projects that want to migrate to Electron Forge.