import { o as logLevelArgs, t as cwdArgs } from "./_shared-B6XhZQ-m.mjs"; import { n as logger } from "./logger-C1qVsppt.mjs"; import { t as templateNames } from "./names-C5-M0i7H.mjs"; import { r as relativeToProcess, t as loadKit } from "./kit-BzPscsEd.mjs"; import process from "node:process"; import { defineCommand } from "citty"; import { colors } from "consola/utils"; import { cancel, intro, outro } from "@clack/prompts"; import { existsSync, promises } from "node:fs"; import { dirname, extname, resolve } from "pathe"; import { camelCase, pascalCase } from "scule"; //#region ../nuxi/src/utils/templates/api.ts const httpMethods = [ "connect", "delete", "get", "head", "options", "post", "put", "trace", "patch" ]; const api = ({ name, args, nuxtOptions }) => { return { path: resolve(nuxtOptions.srcDir, nuxtOptions.serverDir, `api/${name}${applySuffix(args, httpMethods, "method")}.ts`), contents: ` export default defineEventHandler(event => { return 'Hello ${name}' }) ` }; }; //#endregion //#region ../nuxi/src/utils/templates/app.ts const app = ({ args, nuxtOptions }) => ({ path: resolve(nuxtOptions.srcDir, "app.vue"), contents: args.pages ? `