Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

ReScript v12 js-post-build confusion

$
0
0

Works perfectly :ok_hand:

A few other things I had to contend with though:

  • Yes the path is now absolute but it points to the file under lib/bs, before I think it was relative to the project root.
  • The script you pass to cmd used to be run with a pwd that I think was node_modules/rescript, now it’s run with the expected pwd of the project root.
  • It totally swallows console/stdin streams. echo from the script or console.log() from child node processes are swallowed. I had to echo ... >> ./tmp.txt to do some logging.

These are not major issues but might trip people up and would be worth documenting if possible.

In general, MASSIVE THANKS for getting this done, it has allowed us to move fully back to the bleeding edge of ReScript and I hope to contribute bug reports and suggestions etc going forward.


Viewing all articles
Browse latest Browse all 2592

Trending Articles