0x80 / isolate-package

Isolate a monorepo package with its internal dependencies to form a self-contained directory with a pruned lockfile
MIT License
121 stars 13 forks source link

Missing `@pnpm/logger` dependency (peer dependency of `@pnpm/lockfile-file`) #31

Closed macksal closed 10 months ago

macksal commented 10 months ago

I'm running isolate in a yarn (v1) workspace monorepo, and getting Error: Cannot find module '@pnpm/logger'. It seems this is a peer dependency of @pnpm/lockfile-file, which is a dependency of isolate-package.

It's not listed as a dependency in this repo, so it never ends up being installed in mine.

It seems like a simple fix to add @pnpm/logger@^5.0.0 as a dependency in this repo.

0x80 commented 10 months ago

Thanks for reporting! PNPM didn't complain for me. I will release a fix in a bit...

macksal commented 10 months ago

Maybe having pnpm installed exposes the @pnpm apis globally? (Or it's leftover in your environment from something else)

0x80 commented 10 months ago

Yes, something like that 🤷 I have released 1.5.1 just now, that should fix it!