From d791316af5b67c8e5ffdcdb090c7cf037207e7f7 Mon Sep 17 00:00:00 2001 From: dish Date: Mon, 31 Aug 2026 16:14:16 -0400 Subject: [PATCH] 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. --- pkgs/by-name/ou/outline/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/ou/outline/package.nix b/pkgs/by-name/ou/outline/package.nix index be0800e50df1..add6d2fc50a2 100644 --- a/pkgs/by-name/ou/outline/package.nix +++ b/pkgs/by-name/ou/outline/package.nix @@ -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