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

Support Elm 0.19 #8

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Support Elm 0.19 #8

merged 2 commits into from
Aug 28, 2018

Conversation

Punie
Copy link
Contributor

@Punie Punie commented Aug 23, 2018

Hi !

I made a small change to support Elm 0.19 (by locating elm.json instead of elm-package.json).
As far as I know, other than this filename change, there were no fundamental differences on how modules and imports are resolved in 0.19.

This upgrade is necessary for node-elm-compiler and elm-webpack-loader to support Elm 0.19 (PR #142 on elm-webpack-loader)

@hecrj
Copy link
Contributor

hecrj commented Aug 23, 2018

@Punie I have opened a PR in your fork that also fixes the tests for this branch: https://github.com/Punie/find-elm-dependencies/pull/1

@Punie
Copy link
Contributor Author

Punie commented Aug 23, 2018

@hecrj Thank you ! I merged it just now :)

function getElmPackageSourceDirectories(baseDir, currentDir) {
if (typeof currentDir === "undefined") {
baseDir = path.resolve(baseDir);
currentDir = baseDir;
}

var elmPackagePath = path.join(currentDir, 'elm-package.json');
var elmPackagePath = path.join(currentDir, 'elm.json');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really elmPackagePath anymore, isn't it more like elmJsonPath?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's still the file that defines the packages on which the elm build depends.
I'm happy to make the change to elmJsonPath if this terminology seems more sensible :)

@eeue56
Copy link
Collaborator

eeue56 commented Aug 28, 2018

Looks good to me. @stoeffel / @rtfeldman can you merge and release?

@rtfeldman rtfeldman merged commit b852160 into NoRedInk:master Aug 28, 2018
@rtfeldman
Copy link
Contributor

Done - thanks @Punie!

https://www.npmjs.com/package/find-elm-dependencies/v/2.0.0

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.

5 participants