mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
bitwarden-cli: reduce closure size (#364275)
This commit is contained in:
commit
2aa4a28178
@ -50,6 +50,20 @@ buildNpmPackage rec {
|
||||
|
||||
npmFlags = [ "--legacy-peer-deps" ];
|
||||
|
||||
postConfigure = ''
|
||||
# we want to build everything from source
|
||||
shopt -s globstar
|
||||
rm -r node_modules/**/prebuilds
|
||||
shopt -u globstar
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
# remove build artifacts that bloat the closure
|
||||
shopt -s globstar
|
||||
rm -r node_modules/**/{*.target.mk,binding.Makefile,config.gypi,Makefile,Release/.deps}
|
||||
shopt -u globstar
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
vaultwarden = nixosTests.vaultwarden.sqlite;
|
||||
|
Loading…
Reference in New Issue
Block a user