Thanks, that does help a little, though I think there’s a step missing as I’m getting this error:
[1/7]📦 Building package tree...[1/2] ️🛑 Error building package tree. The package "@app/client" is not found (are node_modules up-to-date?)...%
{
"name": "my-monorepo",
"sources": [],
"package-specs": [{ "module": "es6", "in-source": true }],
"bs-dependencies": ["@app/client"],
"pinned-dependencies": ["@app/client"],
"suffix": ".res.js"
}
It seems like rewatch is searching for my packages within node_modules
, and I don’t see a way to nudge it towards “app” or “packages”. Is there another step or is this due to some difference between the way pnpm and yarn manage workspaces?
Looks like it works if I add the package as a dev dependency to the root, but I don’t see that in the example (and would rather not if I can avoid it)