aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--back/default.nix1
-rw-r--r--pusher/default.nix3
2 files changed, 4 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 = ''
diff --git a/pusher/default.nix b/pusher/default.nix
index bdace68..44c4c68 100644
--- a/pusher/default.nix
+++ b/pusher/default.nix
@@ -60,11 +60,14 @@ yarn2nix-moretea.mkYarnPackage rec {
dontStrip = true;
+ # workadventureback below is a package name extracted from package.json,
+ # intended until upstream fixes that up.
buildPhase = ''
mkdir -p $out
ln -s ${workadventure.messages.outPath}/generated deps/workadventureback/src/Messages/generated
HOME=$TMPDIR yarn --offline run tsc
cp -r deps/workadventureback/dist $out/dist
+ rm -rf deps/workadventureback/{src,node_modules}
'';
postInstall = ''