Skip to content

Commit f99c08c

Browse files
alan-agius4clydin
authored andcommittedMay 18, 2022
fix(@angular/cli): ng doc doesn't open browser in Windows
In Windows, `process.exit` was being called prior of opening the browser which caused the browser never to open. Closes #23105
1 parent 5ad5bda commit f99c08c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/angular/cli/lib/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ import { VERSION } from '../src/utilities/version';
107107
});
108108
})
109109
.then((exitCode: number) => {
110-
process.exit(exitCode);
110+
process.exitCode = exitCode;
111111
})
112112
.catch((err: Error) => {
113113
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)
Please sign in to comment.