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:
parent
ddc795b43c
commit
13e4d7b44b
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ _npm_build_install() {
|
||||||
"$ynh_npm" ci --no-audit --ignore-scripts
|
"$ynh_npm" ci --no-audit --ignore-scripts
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" \
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" \
|
||||||
"$ynh_npm" run build
|
"$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"
|
popd || ynh_die "Could not popd"
|
||||||
|
|
||||||
ynh_secure_remove --file="$targetdir"
|
ynh_secure_remove --file="$targetdir"
|
||||||
|
|
Loading…
Reference in a new issue