import { o as logLevelArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs"; import { n as logger } from "./logger-B4ge7MhP.mjs"; import { r as relativeToProcess, t as loadKit } from "./kit-B3S8uoS_.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 ? `