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

ReScript v12 js-post-build confusion

$
0
0

Thanks, this is useful feedback.

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.

Yeah, the path under the project makes more sense.

  • 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.

The pwd of the rescript execution makes most sense to me here.

  • 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.

Good point, this is annoying, we should pipe the stdout/stderr to the current rescript process.

These points are worth revisiting in v13. Will take a look at this eventually.

Thanks for testing!


Viewing all articles
Browse latest Browse all 2592

Trending Articles