diff --git a/scripts/install b/scripts/install index d4cbfde..73626e3 100755 --- a/scripts/install +++ b/scripts/install @@ -53,7 +53,9 @@ ynh_script_progression --message="Configuring the app..." --weight=15 pushd $install_dir ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install + rm .cache/yarn/* -rf + rm node_modules -rf + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn build popd diff --git a/scripts/upgrade b/scripts/upgrade index b38e332..e6976b3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -72,7 +72,7 @@ ynh_script_progression --message="Configuring the app..." --weight=15 pushd $install_dir ynh_use_nodejs - 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 yarn install --production ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn build #ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn update-db popd