import { existsSync, promises } from 'node:fs'; import { c as consola } from '../shared/nuxi.b2fdb45d.mjs'; import { l as loadKit } from '../shared/nuxi.8cc4a579.mjs'; import { u as upperFirst } from '../shared/nuxi.e5ae87db.mjs'; import { d as defineNuxtCommand } from '../shared/nuxi.a865ab6b.mjs'; import { r as resolve, d as dirname } from '../shared/nuxi.a2d9d2e1.mjs'; import '../shared/nuxi.ed696fbc.mjs'; import 'util'; import 'path'; import 'fs'; import 'os'; import 'tty'; import '../shared/nuxi.e551a86b.mjs'; import 'node:module'; import 'node:url'; const httpMethods = ["connect", "delete", "get", "head", "options", "post", "put", "trace", "patch"]; const api = ({ name, args }) => ({ path: `server/api/${name}${applySuffix(args, httpMethods, "method")}.ts`, contents: ` export default defineEventHandler((event) => { return 'Hello ${name}' }) ` }); const plugin = ({ name, args }) => ({ path: `plugins/${name}${applySuffix(args, ["client", "server"], "mode")}.ts`, contents: ` export default defineNuxtPlugin((nuxtApp) => {}) ` }); const component = ({ name, args }) => ({ path: `components/${name}${applySuffix(args, ["client", "server"], "mode")}.vue`, contents: `