-
-
Notifications
You must be signed in to change notification settings - Fork 533
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(initializer): set electron version to be float in init step #187
Conversation
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.
Should we also change versions in https://github.com/electron-userland/electron-forge/blob/master/tmpl/_compilerc ?
Also, will fix babel/babel-preset-env#229 (comment) 👍
src/init/init-npm.js
Outdated
@@ -73,7 +73,7 @@ export default async (dir, lintStyle) => { | |||
|
|||
for (const profile of ['development', 'production']) { | |||
const envTarget = content.env[profile]['application/javascript'].presets.find(x => x[0] === 'env'); | |||
envTarget[1].targets.electron = electronPrebuilt.version; | |||
envTarget[1].targets.electron = parseFloat(electronPrebuilt.version.split('.').slice(0, 2).join('.')); |
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.
just parseFloat(electronPrebuilt.version)
will be enough?
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.
@yavorsky Afaik it only allows the major.minor
syntax, not a patch version. Floats can only have one decimal point 👍
@yavorsky That tmpl file is overridden in the code I have changed in this commit 👍 No need to change that preset value as it never reaches a inited project. |
355cc96
to
e0dbdb0
Compare
just for clarity 🙂 |
…, for completeness
fix: use the latest version of Forge v6 for Fiddle Forge actions
Summarize your changes:
/cc @malept