n8n: remove unnecessary files

This commit is contained in:
Gutyina Gergő
2024-12-28 15:54:11 +01:00
parent e426adf4b6
commit 2b4adf795f
+7 -3
View File
@@ -58,13 +58,17 @@ stdenv.mkDerivation (finalAttrs: {
'';
preInstall = ''
echo "Removing non-deterministic files"
echo "Removing non-deterministic and unnecessary files"
rm -r $(find -type d -name .turbo)
find -type d -name .turbo -exec rm -rf {} +
rm node_modules/.modules.yaml
rm packages/nodes-base/dist/types/nodes.json
echo "Removed non-deterministic files"
pnpm --ignore-scripts prune --prod
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
rm -rf node_modules/.pnpm/{typescript*,prettier*}
echo "Removed non-deterministic and unnecessary files"
'';
installPhase = ''