elm-live icon indicating copy to clipboard operation
elm-live copied to clipboard

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

Open prescottbreeden opened this issue 4 years ago • 2 comments

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.

prescottbreeden avatar Jul 13 '21 05:07 prescottbreeden

Is this for all OSs?

lucamug avatar Jul 13 '21 22:07 lucamug

Is this for all OSs?

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

prescottbreeden avatar Jul 14 '21 00:07 prescottbreeden