2 ms·
Yes! Prune then zip the output folder.
by palmdeezy 4y ago
Yes! Prune then zip the output folder.
- nebezb 4y agoKind of. Poster asked if you can prune only deps and exclude dev deps. That's currently unsupported: https://github.com/vercel/turbo/issues/1100 https://github.com/vercel/turbo/issues/1100
- renke1 4y agoThat's correct. However, I've tried to use prune now, not sure if I am using it correctly, but that's why I do: I build my packages regularly (not pruned), then I prune with scope "backend". Apparently the pruned directory contains node_modules with empty packages, not sure what reason is for that; I just ignored it. In the resulting directory I then run `pnpm install --prod`. Only the regular dependencies will be installed. I think this is enough for my usecase. I am not sure if prune is supposed to be used for this approach though.