Skip to content

Commit

Permalink
n8n: remove unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird committed Dec 24, 2024
1 parent e426adf commit 1c0b741
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/by-name/n8/n8n/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ 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"
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
rm -rf node_modules/.pnpm/{@biomejs*,@rollup*,rollup*,turbo*,@iconify*,@faker*,@esbuild*,typescript*,prettier*,*eslint*}
echo "Removed non-deterministic and unnecessary files"
'';

installPhase = ''
Expand Down

0 comments on commit 1c0b741

Please sign in to comment.