From eaa06cb8b27ba032647632fbbc5bf0086a590938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Michon?= Date: Wed, 24 Jul 2024 16:38:45 +0200 Subject: [PATCH] docs(nodejs): update Node.js spelling in logs --- lib/nodejs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/nodejs b/lib/nodejs index 7eb64e83..3e9fb784 100644 --- a/lib/nodejs +++ b/lib/nodejs @@ -6,7 +6,7 @@ function install_node_deps() { return 0 fi - status "NODE (package.json) app detected" + status "Node.js app detected (package.json)" compile_node $BUILD_DIR $CACHE_DIR @@ -17,7 +17,7 @@ function install_node_deps() { ln -s ${BUILD_DIR}/${node_path}/ /app/${node_path} ln -s ${BUILD_DIR}/node_modules /app/node_modules - echo "Node " `node -v` | indent + echo "Node.js " $(node --version) | indent } function compile_node() { @@ -53,12 +53,12 @@ function compile_node() { if [ "$semver_range" == "" ]; then status "Defaulting to latest stable node: $node_version" else - status "Requested node range: $semver_range" - status "Resolved node version: $node_version" + status "Requested Node.js versions range: $semver_range" + status "Resolved Node.js version: $node_version" fi # Download node from Heroku's S3 mirror of nodejs.org/dist - status "Downloading and installing node" + status "Downloading and installing Node.js" node_url="https://heroku-nodebin.s3.us-east-1.amazonaws.com/node/release/linux-x64/node-v${node_version}-linux-x64.tar.gz" curl $node_url --location -s -o - | tar xzf - -C $build_dir @@ -90,10 +90,10 @@ function compile_node() { test -d $cache_dir/node_modules && cp -r $cache_dir/node_modules $build_dir/ fi - status "Installing dependencies" + status "Installing Node.js dependencies" npm install --production 2>&1 | indent - status "Pruning unused dependencies" + status "Pruning unused Node.js dependencies" npm prune 2>&1 | indent status "Caching node_modules for future builds"