Running into build issues in a monorepo and I’ve seen rewatch mentioned as a good alternative builder. But the docs only mention running npx rewatch build with a “root bsconfig”, but has no mention of what a root config is and I can’t find any examples.
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)
Could you describe the desired logic of finding packages? I’ve added the pnpm support recently and am familiar with the part of the code. I can add support for this case if I understand the problem better. Do you have pnpm-workspace.yaml or something like this?
Yeah, I list a few directories in the workspace.yaml file any any pnpm command I use always first checks these directories:
packages:
- app/client
- packages/*
I wouldn’t be opposed to adding workspaces in package.json to follow official npm convention, though I think ideally I’d like to just pass project dirs directly into pinned dependencies