bsb-native
bsb-native copied to clipboard
ppx compilation is broken when used in a library
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
This can also be broken with yarn workspace in cases where node_modules are hoisted.