I have one BuckleScript library/module X that depends on another Y. The module Y should be exposed by X (i.e. x.ml contains the line module Y = Y and has library Y as a dependency in package.json and bsconfig.json). But Y isn’t visible to projects that depend on X – attempting to compile them gives The module X.Y is an alias for module Y, which is missing. How can I fix this?
One thing I tried was replacing module Y = Y with module Y = struct include Y end. This kind of works, but it doesn’t seem to include the submodules for Y – I get the same error message about the module X.Y.Z. And it doesn’t seem like the right thing to do anyway.