diff --git a/scripts/install b/scripts/install index 1efd29d..af8ab8e 100644 --- a/scripts/install +++ b/scripts/install @@ -181,6 +181,9 @@ npm install typescript@>=2.0 --save npm install ts-node popd +cp ../conf/package.json "$final_path/package.json" +ynh_replace_string "__PORT__" "$port" "$final_path/package.json" + #npm audit fix #npm install -g npm-install-peers #npm-install-peers @@ -244,8 +247,6 @@ ynh_add_systemd_config ### `ynh_replace_string` is used to replace a string in a file. ### (It's compatible with sed regular expressions syntax) -cp ../conf/package.json "$final_path/package.json" -ynh_replace_string "__PORT__" "$port" "$final_path/package.json" #================================================= # STORE THE CONFIG FILE CHECKSUM