mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(cli): 🐛 Fix CLI not working in build
Missing code in cli/index.ts does that to you
This commit is contained in:
parent
6b17b91235
commit
04cd140f6d
|
|
@ -1,6 +1,6 @@
|
|||
import { consoleLogger } from "@loggers";
|
||||
import { Command } from "@oclif/core";
|
||||
import { setupDatabase } from "~drizzle/db";
|
||||
import { consoleLogger } from "@loggers";
|
||||
|
||||
export abstract class BaseCommand<T extends typeof Command> extends Command {
|
||||
protected async init(): Promise<void> {
|
||||
|
|
|
|||
|
|
@ -13,3 +13,7 @@ export const commands = {
|
|||
"user:reset": UserReset,
|
||||
"emoji:add": EmojiAdd,
|
||||
};
|
||||
|
||||
if (import.meta.path === Bun.main) {
|
||||
await execute({ dir: import.meta.url });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"build": "bun run build.ts",
|
||||
"cloc": "cloc . --exclude-dir node_modules,dist,.output,.nuxt,meta,logs,glitch,glitch-dev --exclude-ext sql,log,pem",
|
||||
"wc": "find server database *.ts docs packages types utils drizzle tests -type f -print0 | wc -m --files0-from=-",
|
||||
"cli": "bun run cli/bin/run.ts",
|
||||
"cli": "bun run cli/index.ts",
|
||||
"prune": "ts-prune | grep -v server/ | grep -v dist/ | grep -v '(used in module)'"
|
||||
},
|
||||
"trustedDependencies": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue