Monorepo with bun and nx, issue with rescript -w

Hi,
I made a monorepo with rescript packages, so I need to run multiples rescript -w when I’m in dev mode. I used bun et just install nx.
When I tried with bun: bun --filter "*" res:dev, it start but end immediatly as if I was just building. When I try with nx, nx run-many -t res:dev, it seems to not even start:

❯ nx run-many -t res:dev

 NX   Running target res:dev for 2 projects

   →  Executing 2/2 remaining tasks in parallel...

   ⠏  nx run @project/pkg:res:dev
   ⠏  nx run @project/main:res:dev

I just start with nx, I know that it supposed to work with some generator but I didn’t have this issue with typescript project.

Any Idea how I can make it work properly with bun and/or nx ?

It works without issue through pnpm --filter though.

1 Like

Why don’t you use rewatch? It was made on purpose for mono repos.

1 Like

I just happened to try to use bun (instead of fully working yarn 1.22) to install dependencies for a monorepo. I didn’t get rewatch to run. It complained about the missing linux binary, which does not happen with yarn.

Maybe you have to add it as trusted dependency?

1 Like

Ah, you’re right. Thanks. I should probably have read the docs or something.