bash-language-server: only deploy prod dependencies

This commit is contained in:
Sandro Jäckel 2024-10-19 01:47:22 +02:00
parent 686aecb436
commit 611e7e1752
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -45,13 +45,7 @@ stdenv.mkDerivation (finalAttrs: {
pnpm --offline \
--frozen-lockfile --ignore-script \
--filter=bash-language-server \
deploy $out/lib/bash-language-server
# Cleanup directory a bit, to save space, and make fixup phase a bit faster
rm -r $out/lib/bash-language-server/src
find $out/lib/bash-language-server -name '*.ts' -delete
rm -r \
$out/lib/bash-language-server/node_modules/.bin \
$out/lib/bash-language-server/node_modules/*/bin
deploy --prod $out/lib/bash-language-server
# Create the executable, based upon what happens in npmHooks.npmInstallHook
makeWrapper ${lib.getExe nodejs} $out/bin/bash-language-server \