Skip to content

Commit

Permalink
fix(core): move the daemon stop log out of client (#15783)
Browse files Browse the repository at this point in the history
(cherry picked from commit 28096b8)
  • Loading branch information
FrozenPandaz committed Mar 23, 2023
1 parent 7c4f043 commit f85c2df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/nx/src/command-line/daemon.ts
Expand Up @@ -17,7 +17,8 @@ export async function daemonHandler(args: Arguments) {
});
} else if (args.stop) {
const { daemonClient } = await import('../daemon/client/client');
daemonClient.stop();
await daemonClient.stop();
output.log({ title: 'Daemon Server - Stopped' });
} else {
console.log(generateDaemonHelpOutput());
}
Expand Down
1 change: 1 addition & 0 deletions packages/nx/src/command-line/reset.ts
Expand Up @@ -9,6 +9,7 @@ export async function resetHandler() {
bodyLines: [`This might take a few minutes.`],
});
await daemonClient.stop();
output.log({ title: 'Daemon Server - Stopped' });
removeSync(cacheDir);
if (projectGraphCacheDirectory !== cacheDir) {
removeSync(projectGraphCacheDirectory);
Expand Down
1 change: 0 additions & 1 deletion packages/nx/src/daemon/client/client.ts
Expand Up @@ -376,7 +376,6 @@ export class DaemonClient {
}

removeSocketDir();
output.log({ title: 'Daemon Server - Stopped' });
}
}

Expand Down

0 comments on commit f85c2df

Please sign in to comment.