Closed liamelliott closed 3 years ago
@liamelliott That'd be great if you could, and keep it backwards compatible for older versions of yarn
too.
@sighmon Sweet! I'll try and get on that this week sometime.
I think I fixed it by using yarn run mjml
when installed with yarn in #66 – I think this is the proper way to run binaries by yarn anyway and with it it should work with yarn v2, too.
Running
yarn bin
as used in the lib/mjml.rb file no longer returns a bin directory, but a list of available binaries. In newer versions of Yarn, you must runyarn bin mjml
to get a direct path to the binary. I'll take this as a PR if nobody else is able to.