From ab7de116a8d7f772cc94cebb51721110a3b7432b Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Fri, 22 Dec 2023 02:11:31 +0100 Subject: [PATCH] Update restore --- scripts/restore | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scripts/restore b/scripts/restore index 66ab649..1d41ff4 100755 --- a/scripts/restore +++ b/scripts/restore @@ -32,19 +32,17 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=5 ynh_install_nodejs --nodejs_version=$NODEJS_VERSION #================================================= -# REINSTALL PNPM +# REINSTALL YARN #================================================= -ynh_script_progression --message="Reinstalling pnpm..." --weight=1 +ynh_script_progression --message="Reinstalling yarn..." --weight=1 -# Define and install pnpm -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" +# Define and install yarn +pushd "$install_dir" ynh_use_nodejs corepack enable - corepack prepare pnpm@latest --activate - 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 build + corepack prepare --activate + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production yarn build popd #=================================================