Skip to content

Commit

Permalink
docs(changeset): feat(cli): try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nailiable committed Nov 7, 2024
1 parent 755335c commit 7e286cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-starfishes-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nailyjs/cli": patch
---

feat(cli): try to fix
8 changes: 7 additions & 1 deletion packages/cli/src/development.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
Expand Down

0 comments on commit 7e286cd

Please sign in to comment.