PNPM monorepos use a pnpm-workspace.yaml file to define packages, which can include glob patterns. When running PNPM commands locally or using --filter @testrepo/dep01, everything works correctly from the root directory. However, when using Rewatch, these packages fail to resolve.
From my investigation, Yarn hoists all packages to a root node_modules, whereas PNPM uses symlinks to cache dependencies as part of its core functionality. If Rewatch is relying on package resolution from node_modules, it may be missing the symlinked dependencies.
Since PNPM is included with Node through Corepack, it seems reasonable to add direct support for PNPM resolution.
PNPM monorepos use a
pnpm-workspace.yaml
file to define packages, which can include glob patterns. When running PNPM commands locally or using--filter @testrepo/dep01
, everything works correctly from the root directory. However, when using Rewatch, these packages fail to resolve.I've forked the
testrepo
repository and configured it with PNPM: https://github.com/hellos3b/rewatch-pnpmFrom my investigation, Yarn hoists all packages to a root
node_modules
, whereas PNPM uses symlinks to cache dependencies as part of its core functionality. If Rewatch is relying on package resolution fromnode_modules
, it may be missing the symlinked dependencies.Since PNPM is included with Node through Corepack, it seems reasonable to add direct support for PNPM resolution.