-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Find elm-format
binary more reliably
#91
Comments
I'm having this issue on MacOS 10.13 High Sierra with a global install of
|
Thank you for providing those details @btorellALTA! |
random kibitzer here! What's wrong with using the system lookup mechanism, e.g. just calling edit: As a bonus, it's safe to assume that |
@BrianHicks do you think that Ideally we want to ensure that they are using an |
In that case, it seems better to use the environment to do this in the standard way rather than try and do something fancy-but-breaking in the CLI. Fortunately,
It seems like that would address the concerns you had above? But maybe not? (also I'm kibitzinggggg! Do what you think best, as always. ❤️) |
@BrianHicks your comments are much appreciated! Now that you explain that, you're totally right that
|
well, iff the CLI must be installed via npm, AND it's also a hard dependency (i.e. not a peer dependency) AND you can assume a sufficiently modern npm installation, then |
I'm also using a script in
It's worth pointing out that my |
Hello all, thank you everyone for the excellent feedback! You all rock! 💯 It sounds like the I'll probably publish it today, unless I hear any strong disagreements. Thanks all! |
#87 has been merged! I'm feeling good about this solution. Please send me feedback if you run into any issues here, I think this should resolve the problem though 👍 Thanks all! |
|
The code for finding the
elm-format
executable is unreliable and doesn't work in some environments. See the relevant code here:elm-graphql/generator/src/formatted-write.ts
Lines 4 to 5 in 38860e6
elm-graphql/generator/src/formatted-write.ts
Lines 55 to 63 in 38860e6
It would be nice to find a way to reliably find the executable so that the
elm-format
step can be run for everybody.The text was updated successfully, but these errors were encountered: