Skip to content

Commit 28db6d2

Browse files
committed
Change Typescript scan log color to dark grey
1 parent 3db32fc commit 28db6d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/scanTypescript.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ find_directories_with_package_json_file() {
7171
scan_directory() {
7272
local source_directory_name; source_directory_name=$(basename "${1}");
7373
local progress_information; progress_information="${2}"
74+
local COLOR_DARK_GREY='\033[0;30m'
75+
local COLOR_DEFAULT='\033[0m'
7476

7577
echo "" >&2 # Output an empty line to have a clearer separation between each scan
7678

@@ -79,7 +81,9 @@ scan_directory() {
7981
# Note: For later troubleshooting, the output is also copied to a dedicated log file using "tee".
8082
# Note: Don't worry about the hardcoded version number. It will be updated by Renovate using a custom Manager.
8183
# Note: NODE_OPTIONS --max-old-space-size=4096 increases the memory for scanning larger projects
84+
echo -e "${COLOR_DARK_GREY}"
8285
NODE_OPTIONS="${NODE_OPTIONS} --max-old-space-size=${TYPESCRIPT_SCAN_HEAP_MEMORY}" npx --yes @jqassistant/[email protected] "${1}" --extension React 2>&1 | tee "${LOG_DIRECTORY}/jqassistant-typescript-scan-${source_directory_name}.log" >&2
86+
echo -e "${COLOR_DEFAULT}"
8387
else
8488
echo "scanTypescript: Skipping scan of ${source_directory_name} (${progress_information}) -----------------" >&2
8589
fi

0 commit comments

Comments
 (0)