mcfly/packages/core/src/index.ts
Ayo 08c2497fab feat: use fastify as server
- remove nitropack
- new @mcflyjs/fastify package
- test-core workspace for testing the new setup
2026-05-25 22:43:15 +02:00

23 lines
737 B
JavaScript
Executable file

#!/usr/bin/env node
import { defineCommand, runMain, type ArgsDef, type CommandDef } from 'citty'
const main: CommandDef<ArgsDef> = defineCommand({
meta: {
name: 'mcfly',
description: 'McFly CLI',
},
subCommands: {
build: () => import('./commands/build.js').then((r) => r.default),
generate: () => import('./commands/generate.js').then((r) => r.default),
new: () => import('./commands/new.js').then((r) => r.default),
prepare: () => import('./commands/prepare.js').then((r) => r.default),
serve: () => import('./commands/serve.js').then((r) => r.default),
g: () => import('./commands/generate.js').then((r) => r.default),
},
})
runMain(main)
export const exportedForTest = {
main,
} as const