Skip to content

Commit

Permalink
Include node version into logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hvge committed Sep 8, 2022
1 parent ddde821 commit fa181d8
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ function DO_BUILD
{
LOG_LINE
LOG "Building '$LIB_NAME'..."
LOG " - npm version $(npm -v)"
LOG " - tsc version $TSC_VERSION"
LOG " - node version $NODE_VERSION"
LOG " - npm version $NPM_VERSION"
LOG " - tsc version $TSC_VERSION"
LOG_LINE

PUSH_DIR "$SRC_ROOT"
Expand All @@ -90,8 +91,9 @@ function DO_COMPILE
{
LOG_LINE
LOG "Compiling '$LIB_NAME' with all tests..."
LOG " - npm version $(npm -v)"
LOG " - tsc version $TSC_VERSION"
LOG " - node version $NODE_VERSION"
LOG " - npm version $NPM_VERSION"
LOG " - tsc version $TSC_VERSION"
LOG_LINE

PUSH_DIR "$SRC_ROOT"
Expand All @@ -118,8 +120,9 @@ function DO_TEST

LOG_LINE
LOG "Testing '$LIB_NAME'..."
LOG " - npm version $(npm -v)"
LOG " - tsc version $TSC_VERSION"
LOG " - node version $NODE_VERSION"
LOG " - npm version $NPM_VERSION"
LOG " - tsc version $TSC_VERSION"
LOG " - jest version $($JEST --version)"
LOG_LINE

Expand Down Expand Up @@ -166,9 +169,13 @@ done

REQUIRE_COMMAND tsc
REQUIRE_COMMAND npm
REQUIRE_COMMAND node

TSC_VERSION=( $(tsc --version))
TSC_VERSION=${TSC_VERSION[1]}
NODE_VERSION=$(node -v)
NODE_VERSION=${NODE_VERSION:1}
NPM_VERSION=$(npm -v)

case "$DO_COMMAND" in
build) DO_BUILD ;;
Expand Down

0 comments on commit fa181d8

Please sign in to comment.