zipline: prune node_modules

This reduces the closure size from 3.7 GiB to 2.4 GiB.
This commit is contained in:
Defelo
2025-08-13 13:52:56 +02:00
parent 26f27358de
commit bedeb5bb27
+3
View File
@@ -85,6 +85,9 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = ''
runHook preInstall
pnpm prune --prod
find node_modules -xtype l -delete
mkdir -p $out/{bin,share/zipline}
cp -r build generated node_modules prisma .next mimes.json code.json package.json $out/share/zipline