And btw, rescript legacy build doesn’t work either.
With @rescript/runtime as a dependency in rescript.json:
❯ yarn run rescript legacy build
yarn run v1.22.15
$ /Users/Alex/Dev/rescript-dnd/node_modules/.bin/rescript legacy build
>>>> Start compiling
Error: /Users/Alex/Dev/rescript-dnd/node_modules/@rescript/runtime/rescript.json: No such file or directory>>>> Finish compiling (exit: 2)
error Command failed with exit code 2.
Without @rescript/runtime as a dependency I get the same Pervasives error.