mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 02:40:50 +00:00
outline: shrink output closure size
Shrinks the closure from 1.2GB to 627MB. Removes various unneeded files and runs yarn workspaces focus to go to only production dependencies instead of shipping devDependencies that are unneeded.
This commit is contained in:
@@ -49,8 +49,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
yarn workspaces focus --production
|
||||
|
||||
mkdir -p $out/bin $out/share/outline
|
||||
mv build server public node_modules $out/share/outline/
|
||||
find $out/share/outline/node_modules -name "*.map" -delete
|
||||
find $out/share/outline/node_modules -name "*.d.ts" -delete
|
||||
|
||||
node_modules=$out/share/outline/node_modules
|
||||
build=$out/share/outline/build
|
||||
|
||||
Reference in New Issue
Block a user