vue-language-server: prune dev dependencies (#446728)

This commit is contained in:
Yohann Boniface
2025-09-29 12:23:31 +00:00
committed by GitHub
@@ -37,6 +37,12 @@ stdenv.mkDerivation (finalAttrs: {
'';
preInstall = ''
# the mv commands are workaround for https://github.com/pnpm/pnpm/issues/8307
mv packages packages.dontpruneme
CI=true pnpm prune --prod
find packages.dontpruneme/**/node_modules -xtype l -delete
mv packages.dontpruneme packages
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
# https://github.com/pnpm/pnpm/issues/3645