From 01b38ce2dbe71ea35235ea4600a02a4c61240434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:23:50 +0200 Subject: [PATCH] fix --- scripts/install | 5 +---- scripts/upgrade | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 1d7a253..14110bf 100644 --- a/scripts/install +++ b/scripts/install @@ -51,10 +51,7 @@ pushd "$install_dir" curl https://sh.rustup.rs -sSf | ynh_exec_warn_less ynh_exec_as $app sh -s -- -y export PATH="$install_dir/.cargo/bin:$PATH" ynh_use_nodejs - env $ynh_node_load_PATH corepack enable - env $ynh_node_load_PATH corepack prepare pnpm@latest --activate - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack enable - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack prepare pnpm@latest --activate + ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack pnpm install ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production corepack pnpm build ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack pnpm run init diff --git a/scripts/upgrade b/scripts/upgrade index 7ca69ed..28b1a5a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,10 +77,7 @@ pushd "$install_dir" curl https://sh.rustup.rs -sSf | ynh_exec_warn_less ynh_exec_as $app sh -s -- -y export PATH="$install_dir/.cargo/bin:$PATH" ynh_use_nodejs - env $ynh_node_load_PATH corepack enable - env $ynh_node_load_PATH corepack prepare pnpm@latest --activate - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack enable - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack prepare pnpm@latest --activate + ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm clean-all ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm run build