From 56feea6f62b365eee52d2cbcd8653a911fafb0dd Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 11 Jan 2024 23:02:25 +0000 Subject: [PATCH] Fix corepack use and propagate to upgrade script --- scripts/install | 2 +- scripts/upgrade | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 89b1eb8..e5d54fb 100644 --- a/scripts/install +++ b/scripts/install @@ -60,7 +60,7 @@ ynh_script_progression --message="Building Yarn dependencies..." pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install npm@latest - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH corepack enable + ynh_exec_warn_less corepack enable ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production --pure-lockfile ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean diff --git a/scripts/upgrade b/scripts/upgrade index 9b0875c..09e9a98 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -122,6 +122,8 @@ ynh_script_progression --message="Building Yarn dependencies..." pushd "$install_dir" ynh_use_nodejs + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install npm@latest + ynh_exec_warn_less corepack enable ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn config set network-timeout 300000 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production --pure-lockfile ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean