Skip to content

Commit

Permalink
fix(@angular/cli): ng doc doesn't open browser in Windows
Browse files Browse the repository at this point in the history
In Windows, `process.exit` was being called prior of opening the browser which caused the browser never to open.

Closes #23105

(cherry picked from commit f99c08c)
  • Loading branch information
alan-agius4 authored and clydin committed May 18, 2022
1 parent 4b22593 commit 6f6b453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/cli/lib/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ import { VERSION } from '../src/utilities/version';
});
})
.then((exitCode: number) => {
process.exit(exitCode);
process.exitCode = exitCode;
})
.catch((err: Error) => {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 6f6b453

Please sign in to comment.