From 4e28036864084405ddd7c23e098ddf1a063a89f5 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 11 Sep 2022 19:07:56 +0200 Subject: [PATCH] Force yarnrc file --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 4fedcd5..34f2cef 100644 --- a/scripts/install +++ b/scripts/install @@ -166,8 +166,8 @@ chown $app:$app "$final_path/.yarnrc.yml" pushd "$final_path" ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH HOME="$final_path" yarn install --production --pure-lockfile - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH HOME="$final_path" yarn cache clean + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH HOME="$final_path" yarn install --production --pure-lockfile --use-yarnrc="$final_path/.yarnrc.yml" + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH HOME="$final_path" yarn cache clean --use-yarnrc="$final_path/.yarnrc.yml" popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a26d7b3..f98223b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -241,8 +241,8 @@ chown $app:$app "$final_path/.yarnrc.yml" pushd "$final_path" ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH HOME="$final_path" yarn install --production --pure-lockfile - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH HOME="$final_path" yarn cache clean + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH HOME="$final_path" yarn install --production --pure-lockfile --use-yarnrc="$final_path/.yarnrc.yml" + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH HOME="$final_path" yarn cache clean --use-yarnrc="$final_path/.yarnrc.yml" popd #=================================================