Skip to content

Add a way to look up where the elm binaries are #64

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eeue56
Copy link
Collaborator

@eeue56 eeue56 commented Jan 20, 2018

This is used in a few projects, like:

Likewise, it should probably be used in elm-webpack-loader and similar tools, since generally the expected behaviour for these tools is to use the locally installed (node_modules) over the global

@eeue56 eeue56 requested review from rtfeldman and stoeffel January 20, 2018 22:15
Copy link
Collaborator

@stoeffel stoeffel left a comment

Choose a reason for hiding this comment

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

Looks great!

@stoeffel
Copy link
Collaborator

we should use this in elm-verify-examples as well

@eeue56
Copy link
Collaborator Author

eeue56 commented Jan 22, 2018

Yeah I thought we did already but I was wrong

module.exports = {
compile: compile,
compileSync: compileSync,
compileWorker: require("./worker.js")(compile),
compileToString: compileToString,
compileToStringSync: compileToStringSync,
findAllDependencies: findAllDependencies
findAllDependencies: findAllDependencies,
findElmBinaries: findElmBinaries
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe this name is bad?

Copy link
Collaborator

Choose a reason for hiding this comment

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

how about preferedElmBinaries or elmBinariesLocation?

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah, based on the name I'd be surprised to learn this was searching node_modules first... 🤔

That said, I haven't thought of a better one. 😅

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.

3 participants