diff --git a/scripts/install b/scripts/install index be7a740..740e389 100755 --- a/scripts/install +++ b/scripts/install @@ -36,8 +36,10 @@ pushd "$install_dir/source" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm i ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm run build - ynh_secure_remove --file="node_modules" popd +ynh_secure_remove --file="$install_dir/source/node_modules" +ynh_secure_remove --file="$install_dir/.cache" +ynh_secure_remove --file="$install_dir/.npm" mv "$install_dir/source/dist/editor" "$install_dir/www" diff --git a/scripts/upgrade b/scripts/upgrade index 4550dea..7a4abfb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,8 +42,10 @@ pushd "$install_dir/source" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm i ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm run build - ynh_secure_remove --file="node_modules" popd +ynh_secure_remove --file="$install_dir/source/node_modules" +ynh_secure_remove --file="$install_dir/.cache" +ynh_secure_remove --file="$install_dir/.npm" mv "$install_dir/source/dist/editor" "$install_dir/www"