4 ms·
The limitation of this approach it that all project must reside on the same device as the pnpm store. There is no cross-device symlinks
by vadiml 4y ago
The limitation of this approach it that all project must reside on the same device as the pnpm store. There is no cross-device symlinks
- jaxn 4y agoWhich becomes a problem using containers in a monorepo.
- eurasiantiger 4y agoHow does that make it problematic?
- jaxn 4y agoCan’t hard link across mount point, so either copy to the container or install inside the container (both negate pnpm’s benefit). Our workaround is to put the global cache in the project so we can mount it alongside the code in the same mountpoint.
- eurasiantiger 4y agoThanks, I wouldn’t have thought of sharing npm packages like that. I would argue building different containers from a shared node_modules is inherently dangerous anyway. Sounds like your ”workaround” is in fact pretty much the optimal setup for quickly performing multiple similar builds.
- josephcsible 4y ago> There is no cross-device symlinks Do you mean hardlinks?