mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
bash-language-server: only deploy prod dependencies
This commit is contained in:
parent
686aecb436
commit
611e7e1752
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user