Re:Launch HN: Moonrepo (YC W23) – Open-source build system
by nebezb on Wednesday February 22, 2023 @12:29AM
(#34891989)
Kind of. Poster asked if you can prune only deps and exclude dev deps. That's currently unsupported: https://github.com/vercel/turbo/issues/1100
[ Parent
| on HN ]
Re:Launch HN: Moonrepo (YC W23) – Open-source build system
by renke1 on Wednesday February 22, 2023 @03:46AM
(#34893201)
That'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.