From 8cc2e3d3e521ee53af3fbc21d3629868566a45d0 Mon Sep 17 00:00:00 2001 From: Mateusz <2871798+orhtej2@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:11:43 +0100 Subject: [PATCH] Update _common.sh --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index d9659f0..d12e606 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -24,12 +24,12 @@ _npm_build_install() { targetdir=$2 subpath=$3 - pushd "$sourcedir" || ynh_die "Could not pushd $sourcedir" - ynh_use_nodejs + ynh_use_nodejs + pushd "$sourcedir/frontend" || ynh_die "Could not pushd $sourcedir/frontend" ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" \ "$ynh_npm" ci --no-audit --ignore-scripts ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" \ - "$ynh_npm" run build -- --base="$subpath/" + "$ynh_npm" run build popd || ynh_die "Could not popd" mv "$sourcedir/frontend/dist" "$targetdir"