From 5e0f8a33953201d71f2c75870e1f72bc5575eda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 29 May 2024 10:23:38 +0200 Subject: [PATCH] Update install --- scripts/install | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 89e2587..2b1929d 100644 --- a/scripts/install +++ b/scripts/install @@ -41,13 +41,15 @@ ynh_script_progression --message="Installing $app with Composer..." --weight=30 pushd "$install_dir/sources" ynh_install_composer --workdir="$install_dir/sources" --install_args="--no-dev" - ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn install --pure-lockfile --prod - ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn run buildall + corepack enable + corepack prepare pnpm@latest --activate + ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" pnpm install --pure-lockfile --prod + ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" pnpm run buildall ynh_composer_exec --workdir="$install_dir/sources" --commands="install --prefer-dist --no-cache --no-progress --no-dev -a" ynh_secure_remove node_modules - ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn cache clean + ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" pnpm cache clean ynh_add_config --template="config.php" --destination="$install_dir/sources/config.php" ynh_exec_as "$app" "php$phpversion" "bin/install" start -q