From 725833c4a9686e470bddc7f9fe50622cdec585a5 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 1 Oct 2024 11:43:34 +0200 Subject: [PATCH] cli: fix paths --- cli/commands/init.mjs | 2 +- cli/templates.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/commands/init.mjs b/cli/commands/init.mjs index 9cea9b99..e6d1a820 100644 --- a/cli/commands/init.mjs +++ b/cli/commands/init.mjs @@ -75,7 +75,7 @@ export default defineCommand({ await sortFile(themePath) 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 sortFile(typesPath) } diff --git a/cli/templates.mjs b/cli/templates.mjs index 39e2b057..8abe3009 100644 --- a/cli/templates.mjs +++ b/cli/templates.mjs @@ -5,7 +5,7 @@ const playground = ({ name, pro }) => { const kebabName = kebabCase(name) return { - filename: `playground/pages/components/${kebabName}.vue`, + filename: `playground/app/pages/components/${kebabName}.vue`, contents: pro ? undefined : `