We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
npm create nuxt
1 parent 0aa3a0f commit 3da220cCopy full SHA for 3da220c
packages/create-nuxt/src/main.ts
@@ -1,4 +1,5 @@
1
import type { CommandDef } from 'citty'
2
+import process from 'node:process'
3
import { defineCommand } from 'citty'
4
import { provider } from 'std-env'
5
@@ -30,7 +31,9 @@ const _main = defineCommand({
30
31
},
32
})
33
-// eslint-disable-next-line antfu/no-top-level-await
34
-await setupInitCompletions(_main)
+if (process.argv[2] === 'complete') {
35
+ // eslint-disable-next-line antfu/no-top-level-await
36
+ await setupInitCompletions(_main)
37
+}
38
39
export const main = _main as CommandDef<any>
0 commit comments