Closed Svaught598 closed 8 months ago
Maybe having a function that returns the expected binary path would make more sense here? Is there a preferred way to solve this problem?
maybe we could just check if we're on windows here and return the .exe
path instead. Is that a windows thing, can't just name it esbuild?
It seems that the filenames in the windows archives are actually esbuild.exe
, so erl_tar
is unable to detect it without that explicit extension. I pushed another commit to only use that filepath if the OS is windows, please let me know if any other changes are needed!
Ah right yeah gotcha. Looks grand, thank you!
I've published a v1.0.1 patch so you should be good to use this straight away :)
Fixes #14!
I've tested this in an example project on my machine and everything works as expected.
localhost:1234
opens up with a sample Lustre app.I'm not sure how safe it is to list two file paths for the ESBuild binary. the location/name is different between platforms, so it feels like the likelihood of a single archive containing files at both paths is extremely slim. Maybe having a function that returns the expected binary path would make more sense here?
Is there a preferred way to solve this problem?