We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c028656 commit 61f0172Copy full SHA for 61f0172
src/commands/module/add.ts
@@ -12,6 +12,7 @@ import { satisfies } from 'semver'
12
import { updateConfig } from 'c12/update'
13
import { colors } from 'consola/utils'
14
import { sharedArgs } from '../_shared'
15
+import { runCommand } from '../../run'
16
import {
17
checkNuxtCompatibility,
18
fetchModules,
@@ -116,6 +117,10 @@ export default defineCommand({
116
117
return null
118
})
119
}
120
+
121
+ // update the types for new module
122
+ const args = Object.entries(ctx.args).filter(([k]) => k in sharedArgs).map(([k, v]) => `--${k}=${v}`)
123
+ await runCommand('prepare', args)
124
},
125
126
0 commit comments