There is amazing `pnpm deploy` command in @pnpm.
It copies your project (with monorepo support) to dist/ removing devDependencies to reduce security risks. Then you copy dist/ to Docker image.
Here is how I use it:
https://github.com/hplush/slowreader/pull/242/files
This is why I love pnpm so much—they really think how real team will use it.
It has a great set of built-in commands together with the best monorepo support.
@sitnik_en @pnpm TIL! This is a very useful feature, thanks for sharing this 🔥