@@ -15,6 +15,7 @@ const architect_1 = require("@angular-devkit/architect");
15
15
const node_path_1 = __importDefault ( require ( "node:path" ) ) ;
16
16
const normalize_cache_1 = require ( "../../utils/normalize-cache" ) ;
17
17
const project_metadata_1 = require ( "../../utils/project-metadata" ) ;
18
+ const tty_1 = require ( "../../utils/tty" ) ;
18
19
async function normalizeOptions ( context , projectName , options ) {
19
20
// Setup base paths based on workspace root and project information
20
21
const workspaceRoot = context . workspaceRoot ;
@@ -26,7 +27,7 @@ async function normalizeOptions(context, projectName, options) {
26
27
// Target specifier defaults to the current project's build target using a development configuration
27
28
const buildTargetSpecifier = options . buildTarget ?? `::development` ;
28
29
const buildTarget = ( 0 , architect_1 . targetFromTargetString ) ( buildTargetSpecifier , projectName , 'build' ) ;
29
- const { codeCoverage, codeCoverageExclude, tsConfig, runner, reporters, browsers, watch } = options ;
30
+ const { codeCoverage, codeCoverageExclude, tsConfig, runner, reporters, browsers } = options ;
30
31
return {
31
32
// Project/workspace information
32
33
workspaceRoot,
@@ -43,7 +44,7 @@ async function normalizeOptions(context, projectName, options) {
43
44
tsConfig,
44
45
reporters,
45
46
browsers,
46
- watch,
47
+ watch : options . watch ?? ( 0 , tty_1 . isTTY ) ( ) ,
47
48
debug : options . debug ?? false ,
48
49
providersFile : options . providersFile && node_path_1 . default . join ( workspaceRoot , options . providersFile ) ,
49
50
} ;
0 commit comments