wking-io / elm-live

⚡ A flexible dev server for Elm. Live reload included.
https://elm-live.com
MIT License
1.05k stars 61 forks source link

Yarn: Output In Wrong Location when using -- --output='file.js' #259

Open prescottbreeden opened 3 years ago

prescottbreeden commented 3 years ago

There is a bug in the arg parsing that requires doubling the number of double-dashes to add elm make flags:

yarn elm-live src/Main.elm -- -- --output=main.js

This looks to be because yarn removes double-dashes on inputs: warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.

lucamug commented 3 years ago

Is this for all OSs?

prescottbreeden commented 3 years ago

Is this for all OSs?

I believe it's yarn specific, have not tested outside linux but i can test later