We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92f23da commit d4be053Copy full SHA for d4be053
packages/next/src/bin/next.ts
@@ -395,8 +395,10 @@ program
395
)}`
396
)
397
.action((directory: string, options: NextTypegenOptions) =>
398
+ // ensure process exits after build completes so open handles/connections
399
+ // don't cause process to hang
400
import('../cli/next-typegen.js').then((mod) =>
- mod.nextTypegen(options, directory)
401
+ mod.nextTypegen(options, directory).then(() => process.exit(0))
402
403
404
.usage('[directory] [options]')
0 commit comments