n8n: fix build with noBrokenSymlinks

This commit is contained in:
Gutyina Gergő
2025-02-09 18:33:44 +01:00
parent e986f75996
commit 2c1b82a882
+3
View File
@@ -73,6 +73,9 @@ stdenv.mkDerivation (finalAttrs: {
pnpm --ignore-scripts prune --prod
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
rm -rf node_modules/.pnpm/{typescript*,prettier*}
shopt -s globstar
# https://github.com/pnpm/pnpm/issues/3645
find node_modules packages/**/node_modules -xtype l -delete
echo "Removed non-deterministic and unnecessary files"
'';