Skip to content

Commit 244931e

Browse files
alan-agius4dgp1130
authored andcommitted
fix(@angular/build): correctly invoke isTTY as a function
Addresses an issue where 'isTTY' was incorrectly treated as a property instead of being called as a function, ensuring proper terminal detection. (cherry picked from commit 38743d9)
1 parent 363496a commit 244931e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/build/src/utils/check-port.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function checkPort(port: number, host: string): Promise<number> {
3232
return;
3333
}
3434

35-
if (!isTTY) {
35+
if (!isTTY()) {
3636
reject(createInUseError(port));
3737

3838
return;

0 commit comments

Comments
 (0)