concurrently: remove unnecessary and non-deterministic files

This commit is contained in:
Gutyina Gergő
2025-12-21 01:55:00 +01:00
parent 2bb6c99fbf
commit ace8036177
+11
View File
@@ -47,6 +47,17 @@ stdenv.mkDerivation (finalAttrs: {
runHook postBuild
'';
preInstall = ''
# remove unnecessary files
CI=true pnpm --ignore-scripts --prod prune
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
# https://github.com/pnpm/pnpm/issues/3645
find node_modules -xtype l -delete
# remove non-deterministic files
rm node_modules/{.modules.yaml,.pnpm-workspace-state-v1.json}
'';
installPhase = ''
runHook preInstall