From d30f6f7bb7902995fdcbb35502a1cb518f8d92fd Mon Sep 17 00:00:00 2001 From: Mohamed Rashid Date: Sat, 21 Mar 2020 21:05:26 +0000 Subject: [PATCH 1/2] fix(v2): always exit after sucessfull build --- packages/docusaurus/src/commands/build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/docusaurus/src/commands/build.ts b/packages/docusaurus/src/commands/build.ts index b34095cf535b..9fd61bc64b51 100644 --- a/packages/docusaurus/src/commands/build.ts +++ b/packages/docusaurus/src/commands/build.ts @@ -148,4 +148,5 @@ export async function build( )}.\n`, ); return outDir; + process.exit(0); } From f9fd76cd33a262cf55ce97b1b1897522a64ed59a Mon Sep 17 00:00:00 2001 From: Mohamed Rashid Date: Sun, 22 Mar 2020 14:59:26 +0000 Subject: [PATCH 2/2] fix(v2): exit before return --- packages/docusaurus/src/commands/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/src/commands/build.ts b/packages/docusaurus/src/commands/build.ts index 9fd61bc64b51..8bef5d2353b8 100644 --- a/packages/docusaurus/src/commands/build.ts +++ b/packages/docusaurus/src/commands/build.ts @@ -147,6 +147,6 @@ export async function build( relativeDir, )}.\n`, ); - return outDir; process.exit(0); + return outDir; }