Standalone BuckleScript runtime library on npm


Is there anything stopping an automated build script from publishing the BuckleScript runtime libraries for every bs-platform release? E.g., bs-platform-runtime? Then bs-platform could move to being a devDep and the runtime lib a dep.


This has been discussed in issues many times. No official solution yet.

Currently I am using this ugly way to got:

With this trick


The short answer is yes. It is simple in the common use case but I think there are some edge cases that make it a bit of a challenge; at the very least the compiler will need to be updated to check that the matching runtime version is installed.

The relevant issues and proposed PRs - which I’ve been involved with as well - have all been linked together in this summary issue: