Hello @benadamstyles,
I’ve implemented the missing functionality in Initial implementation of js-post-build in rewatch by nojaf · Pull Request #8151 · rescript-lang/rescript · GitHub.
One twist: it would be easier for us if the ${file} argument were an absolute path. That makes more sense in a monorepo, since you might be building from the repo root or from a package.
This will behave differently from our old build system. That said, it’s something I think we’d change anyway for v13.
Would this block anyone? Most scripts can be adapted to handle absolute paths, but that would be on users.