Skip to content

Commit 9a7784d

Browse files
committed
refactor: generate manifest without blocking the current flow
1 parent c82afb6 commit 9a7784d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/Compiler/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,11 @@ export class Compiler {
225225

226226
this._logger.info({ message: 'installing production dependencies', suffix: client })
227227
await new Installer(config.options.outDir!, client).install()
228-
await this.manifest.generate()
228+
229+
/**
230+
* Manifest can be generated without blocking the flow
231+
*/
232+
this.manifest.generate()
229233

230234
/**
231235
* Start HTTP server in production

src/Watcher/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ export class Watcher {
5151
await this.compiler.copyAdonisRcFile(config.options.outDir!)
5252
await this.compiler.copyMetaFiles(config.options.outDir!)
5353
this.compiler.buildTypescriptSource(config)
54+
55+
/**
56+
* Manifest can be generated without blocking the flow
57+
*/
5458
this.compiler.manifest.generate()
5559

5660
/**

0 commit comments

Comments
 (0)