cli: typo when writing types/index.d.ts

This commit is contained in:
Benjamin Canac
2024-06-10 18:57:00 +02:00
parent 1d303ab909
commit 90bcc23576

View File

@@ -76,7 +76,7 @@ export default defineCommand({
if (!args.prose) { if (!args.prose) {
const typesPath = resolve(path, 'src/runtime/types/index.d.ts') const typesPath = resolve(path, 'src/runtime/types/index.d.ts')
await appendFile(typesPath, `export * from '../components/${args.content && 'content/'}${splitByCase(name).map(p => upperFirst(p)).join('')}.vue'`) await appendFile(typesPath, `export * from '../components/${args.content ? 'content/' : ''}${splitByCase(name).map(p => upperFirst(p)).join('')}.vue'`)
await sortFile(typesPath) await sortFile(typesPath)
} }
} }