Skip to content

Commit 5a13881

Browse files
committed
feat: app directory command handler
1 parent 1cac172 commit 5a13881

File tree

11 files changed

+3
-116
lines changed

11 files changed

+3
-116
lines changed

packages/commandkit/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"@babel/parser": "^7.26.5",
3535
"@babel/traverse": "^7.26.5",
3636
"@babel/types": "^7.26.5",
37-
"@commandkit/router": "workspace:*",
3837
"commander": "^12.1.0",
3938
"dotenv": "^16.4.7",
4039
"ms": "^2.1.3",

packages/commandkit/src/CommandKit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import { Awaitable, Locale, Message } from 'discord.js';
1919
import { DefaultLocalizationStrategy } from './app/i18n/DefaultLocalizationStrategy';
2020
import { findAppDirectory } from './utils/utilities';
2121
import { join } from 'node:path';
22-
import { CommandsRouter, EventsRouter } from '@commandkit/router';
2322
import { AppCommandHandler } from './app/command-handler/AppCommandHandler';
2423
import { LocalizationStrategy } from './app/i18n/LocalizationStrategy';
24+
import { CommandsRouter, EventsRouter } from './app/router';
2525

2626
export interface CommandKitConfiguration {
2727
defaultLocale: Locale;

packages/commandkit/src/app/command-handler/AppCommandHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ParsedCommand, ParsedMiddleware } from '@commandkit/router';
21
import type { CommandKit } from '../../CommandKit';
32
import {
43
Awaitable,
@@ -14,6 +13,7 @@ import { toFileURL } from '../../utils/resolve-file-url';
1413
import { TranslatableCommandOptions } from '../i18n/Translation';
1514
import { MessageCommandParser } from '../commands/MessageCommandParser';
1615
import { CommandKitErrorCodes, isErrorType } from '../../utils/error-codes';
16+
import { ParsedCommand, ParsedMiddleware } from '../router';
1717

1818
interface AppCommand {
1919
command: SlashCommandBuilder | Record<string, any>;
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/commandkit/src/legacy/handlers/event-handler/EventHandler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { getFilePaths, getFolderPaths } from '../../../utils/get-paths';
44
import { toFileURL } from '../../../utils/resolve-file-url';
55
import { clone } from '../../../utils/clone';
66
import colors from '../../../utils/colors';
7-
import { ParsedEvent } from '@commandkit/router';
8-
import { Events } from 'discord.js';
7+
import { ParsedEvent } from '../../../app/router';
98

109
/**
1110
* A handler for client events.

packages/router/README.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

packages/router/package.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

packages/router/tsconfig.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)