rescript-lang / rescript

ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript.
https://rescript-lang.org
Other
6.75k stars 449 forks source link

Add rewatch as an alternative build system to eventually replace bsb #6760

Open cknitt opened 5 months ago

cknitt commented 5 months ago
  1. Add rewatch to compiler repo + CI + the rescript npm package (as an experimental alternative to bsb)
  2. Use rewatch to build the standard libraries (OCaml stdlib, Caml_*, Belt, Js)
  3. (Move Core into the compiler, move other stdlibs out of the compiler, ...)
  4. Remove bsb, do not ship any compiled stdlib artifacts with the ReScript npm package anymore (see https://github.com/rescript-lang/rescript-compiler/issues/6183)
nojaf commented 2 months ago

Is it the plan to make rewatch available from the node_modules/.bin folder? It is not yet the case with 12.0.0-alpha.1.

cknitt commented 2 months ago

Yes, that would be the plan. Seems this was lost in a refactoring where the path to the rewatch wrapper script in package.json was not updated.

nojaf commented 2 months ago

This works for me in 12.0.0-alpha.2, thanks!