aboutsummaryrefslogtreecommitdiff
path: root/back/default.nix
diff options
context:
space:
mode:
authorPiotr Dobrowolski2021-01-24 17:34:30 +0100
committerPiotr Dobrowolski2021-02-05 09:50:18 +0100
commite5859bb3258351c19540eedd6a8d1dff14af1295 (patch)
tree132d0224e9856cd1cba021055a0f696316a71917 /back/default.nix
parent059adccbe54c6a85d2366f0d0bb3956356bf64a3 (diff)
back,pusher: reduce final derivation size
While this still is a major hack, this reduces unused node_modules (about 200MB each) being pulled in from workadventure*-modules-* and workadventure-messages.
Diffstat (limited to '')
-rw-r--r--back/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/back/default.nix b/back/default.nix
index 5f92960..06325c7 100644
--- a/back/default.nix
+++ b/back/default.nix
@@ -62,6 +62,7 @@ yarn2nix-moretea.mkYarnPackage rec {
ln -s ${workadventure.messages.outPath}/generated deps/${pname}/src/Messages/generated
HOME=$TMPDIR yarn --offline run tsc
cp -r deps/${pname}/dist $out/dist
+ rm -rf deps/${pname}/{src,node_modules}
'';
postInstall = ''