mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 12:17:54 +01:00
cli: fix paths
This commit is contained in:
@@ -75,7 +75,7 @@ export default defineCommand({
|
|||||||
await sortFile(themePath)
|
await sortFile(themePath)
|
||||||
|
|
||||||
if (!args.prose) {
|
if (!args.prose) {
|
||||||
const typesPath = resolve(path, 'src/runtime/types/index.d.ts')
|
const typesPath = resolve(path, 'src/runtime/types/index.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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ const playground = ({ name, pro }) => {
|
|||||||
const kebabName = kebabCase(name)
|
const kebabName = kebabCase(name)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
filename: `playground/pages/components/${kebabName}.vue`,
|
filename: `playground/app/pages/components/${kebabName}.vue`,
|
||||||
contents: pro
|
contents: pro
|
||||||
? undefined
|
? undefined
|
||||||
: `
|
: `
|
||||||
|
|||||||
Reference in New Issue
Block a user