Standalone BuckleScript runtime library on npm


#1

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.


#2

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

Currently I am using this ugly way to got:

With this trick https://github.com/phenomic/phenomic/blob/f6e17e876dbb5222fb48ba524f174555b90a8cc3/packages/bs-platform/package.json#L23


#3

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: