How to stop bsb from outputting to the lib/ directory?

bsb

#1

I’m following the instructions here to integrate reason into our JS repo.

However, I’m noticing that bsb is outputting a lib/bs directory. What is it for? As far as I know, all we need is to have the *.re files compiled into neighboring *.bs.js files and our JS build pipeline will take care of the rest.

If lib/ is in fact irrelevant for our purposes, is it possible to stop bsb from outputting it?


#2

Bucklescript uses lib/ for caching build artifacts. If it’s annoying, you could git ignore that folder.


#3

It’s for incremental build caching, editor tooling info, etc.