Proposal: Make build -with-deps a default behaviour

A problem with rescript build is that it doesn’t rebuild a package when a new version is installed. It’s especially critical when multiple developers are working on a project. Often they don’t know when some package is updated to run rescript build -with-deps.

To solve the problem, we have -with-deps in all our scripts, including the ones with watch mode. I think it makes sense to make it a default behavior and add something like -without-deps as @tsnobip suggested in the [ANN] ReScript 9.1.4 release - #3 by tsnobip.

I think it’ll be a more reliable default, even if the issue with rebuilding packages when the version change is fixed.

5 Likes

I also have -with-deps flag on all my build scripts