File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -149,9 +149,13 @@ for source_directory in ${source_directories}; do
149149
150150 processed_source_directories=$(( processed_source_directories + 1 ))
151151 progress_info_source_dirs=" ${processed_source_directories} /${total_source_directories} "
152- if scan_directory " ${source_directory} " " ${progress_info_source_dirs} " && is_valid_scan_result " ${source_directory} " ; then
152+
153+ if [ -f " ${source_directory} /tsconfig.json" ] \
154+ && scan_directory " ${source_directory} " " ${progress_info_source_dirs} " \
155+ && is_valid_scan_result " ${source_directory} "
156+ then
153157 write_change_detection_file
154- continue # successful scan, proceed to next one.
158+ continue # successfully scanned a standard Typescript project (with tsconfig.json file). proceed with next one.
155159 fi
156160
157161 echo " scanTypescript: Info: Unsuccessful or skipped source directory scan. Scan all contained packages individually." >&2
You can’t perform that action at this time.
0 commit comments