mastodon: prune node_modules

cleanup after frontend assets compiled, then re-install
@mastodon/streaming dependencies. save ~500mb.
This commit is contained in:
Shell Chen
2025-12-10 21:59:27 +11:00
parent 677fbe9798
commit 1995c9c3d6
+3
View File
@@ -66,6 +66,9 @@ stdenv.mkDerivation rec {
bundle exec rails assets:precompile
# Install packages for streaming server while remove others
rm -rf node_modules/*
yarn workspaces focus --production @mastodon/streaming
rm -rf node_modules/.cache
# Remove workspace "package" as it contains broken symlinks