Skip to content
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): electron versions for babel-preset-env should be strings #382

Merged
merged 1 commit into from
Dec 17, 2017

Conversation

malept
Copy link
Member

@malept malept commented Dec 5, 2017

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (not applicable).
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

Forge changed to floats in #187 due to a break in babel-preset-env. The Babel folks added proper support for strings as versions in v1.5.0 via babel/babel-preset-env#321, about 1.5 months later (we require ^1.6.0 already).

Removes the following warning when running electron-forge start:

Warning, the following targets are using a decimal version:

electron: 1.7

We recommend using a string for minor/patch versions to avoid numbers like 6.10
getting parsed as 6.1, which can lead to unexpected behavior.

…rings

Removes the following warning when running `electron-forge start`:

> Warning, the following targets are using a decimal version:
>
>   electron: 1.7
>
> We recommend using a string for minor/patch versions to avoid numbers like 6.10
> getting parsed as 6.1, which can lead to unexpected behavior.
@malept malept merged commit 35120b1 into master Dec 17, 2017
@malept malept deleted the preset-env-string-version branch December 17, 2017 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants