core: skip app/started hook on cli mode

This commit is contained in:
undefined committed 2022-09-04 23:26:16 +08:00
1 parent 01d9879ebf
commit 7fb5a9cae9
2 files changed
+1 -1

No files matched your search

-1
View File
@@ -106,6 +106,5 @@ export async function load() {
await model(pending, fail);
require('../script/index');
await script(pending, fail, []);
await bus.parallel('app/started');
await cli();
}
+1
View File
@@ -74,6 +74,7 @@ export async function load() {
}
export async function loadCli() {
process.env.HYDRO_CLI = 'true';
await require('./entry/cli').load();
setTimeout(() => process.exit(0), 300);
}