diff --git a/.changeset/few-starfishes-shout.md b/.changeset/few-starfishes-shout.md new file mode 100644 index 0000000..47ac9d0 --- /dev/null +++ b/.changeset/few-starfishes-shout.md @@ -0,0 +1,5 @@ +--- +"@nailyjs/cli": patch +--- + +feat(cli): try to fix diff --git a/packages/cli/src/development.service.ts b/packages/cli/src/development.service.ts index 3ae287e..1cdf70d 100644 --- a/packages/cli/src/development.service.ts +++ b/packages/cli/src/development.service.ts @@ -34,7 +34,13 @@ export class DevelopmentStarter implements Setupable { // it is a entry point of the application, so must convert it to output const runnerEntry = this.tsupService.getRunnerEntry() const runnerEntryOutput = this.entryAnalyzerService.analyzeRunnerEntryToGetOutput(runnerEntry, outDir) - this.killer = this.developmentRunnerService.createProcess(runnerEntryOutput) + await new Promise((resolve) => { + const timer = setTimeout(() => { + this.killer = this.developmentRunnerService.createProcess(runnerEntryOutput) + resolve(true) + clearTimeout(timer) + }, 1000) + }) } async setup(): Promise {