bsansouci / bsb-native

Build system for OCaml/Reason
Other
245 stars 10 forks source link

ppx compilation is broken when used in a library #67

Open jaredly opened 6 years ago

jaredly commented 6 years ago

e.g. my app has a dependency, and the dependency is doing a ppx on its own files. It breaks because npm puts bs-platform in the node_modules directory of the app (b/c it's shared) but the ppx compilation step expects bs_tools_ppx.exe to be in the node_modules of the dependency.

The error:

sh: /[etc etc]/the-project/node_modules/the-library/node_modules/bs-platform/lib/bs_ppx_tools.exe: No such file or directory
rtsao commented 5 years ago

This can also be broken with yarn workspace in cases where node_modules are hoisted.