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

Failing to pack with PNPM #56

Closed pwalczyszyn closed 6 months ago

pwalczyszyn commented 7 months ago

Any idea where I can look for cause of this error?

image

0x80 commented 7 months ago

I haven't seen this before. But I plan to do an update soon, so I will try to improve the error logging so that it displays more context.

What OS are you on?

It might be related to your file structure. It seems frontend and backend are registered as packages in the root, but also packages is a subfolder with packages there. That is not how monorepos are typically structured.

Nested structures are not supported AFAIK. Not by turborepo and not by isolate-package last time I checked.

I would advise to move frontend and backend also in some sort of packages folder.

I usually use apps, services and packages, where apps and services are packages that are deployed or executed and packages are shared libraries.

pwalczyszyn commented 7 months ago

I'm on Mac, and I have same error when I moved backend and frontend under apps folder.

image

0x80 commented 7 months ago

Hmm 🤔

Could you please try executing the pnpm pack command, with the parameter as given in your screenshot, from one of your packages directly?

What version of pnpm are you using?

0x80 commented 6 months ago

@pwalczyszyn I will close this issue for now. Feel free to re-open it if you have additional info.