From 87412a76dea4760d9251b1979a360a61bf45991e Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sun, 11 Feb 2024 22:40:20 +0100 Subject: [PATCH] Fixed usages of `npm` --- scripts/install | 6 +++--- scripts/upgrade | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 329a0d9..431ad9d 100644 --- a/scripts/install +++ b/scripts/install @@ -67,9 +67,9 @@ pushd $install_dir/build/frontend # ynh_exec_warn_less ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH JAVA_HOME=$JAVA_HOME clojure -J-Xms100M -J-Xmx800M -J-XX:+UseSerialGC -M:dev:shadow-cljs release main --config-merge "{:release-version \"${current_hash}\"}" - ynh_exec_as $app $ynh_node_load_PATH npm exec gulp build - ynh_exec_as $app $ynh_node_load_PATH npm exec gulp dist:clean - ynh_exec_as $app $ynh_node_load_PATH npm exec gulp dist:copy + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp dist:clean + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp dist:copy sed -i -re "s/\%version\%/$version/g" ./target/dist/index.html; sed -i -re "s/\%buildDate\%/$build_date/g" ./target/dist/index.html; diff --git a/scripts/upgrade b/scripts/upgrade index 7b6c620..cce6496 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,9 +68,9 @@ then # ynh_exec_warn_less ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH JAVA_HOME=$JAVA_HOME clojure -J-Xms100M -J-Xmx800M -J-XX:+UseSerialGC -M:dev:shadow-cljs release main --config-merge "{:release-version \"${current_hash}\"}" - ynh_exec_as $app $ynh_node_load_PATH npm exec gulp build - ynh_exec_as $app $ynh_node_load_PATH npm exec gulp dist:clean - ynh_exec_as $app $ynh_node_load_PATH npm exec gulp dist:copy + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp build + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp dist:clean + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm exec gulp dist:copy sed -i -re "s/\%version\%/$version/g" ./target/dist/index.html; sed -i -re "s/\%buildDate\%/$build_date/g" ./target/dist/index.html;