1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin-vue_ynh.git synced 2024-09-03 19:26:31 +02:00

Clean npm cache after build to reduce backup size

This commit is contained in:
Félix Piédallu 2023-11-29 14:41:23 +01:00 committed by Salamandar
parent ddc795b43c
commit 13e4d7b44b

View file

@ -30,6 +30,8 @@ _npm_build_install() {
"$ynh_npm" ci --no-audit --ignore-scripts
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" \
"$ynh_npm" run build
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" \
"$ynh_npm" cache clean --force
popd || ynh_die "Could not popd"
ynh_secure_remove --file="$targetdir"