Skip to content

Commit

Permalink
fix: Resolve routing issues during bot imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nicetomytyuk committed Jul 22, 2024
1 parent d423751 commit 93e609b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env tsx

import { onShutdown } from "node-graceful-shutdown";
import { createBot } from "#root/bot/index.js";
import { config } from "#root/config.js";
import { createServer } from "#root/server/index.js";
import { createBot } from "./bot/index.js";
import { createServer } from "./server/index.js";
import { config } from "./config.js";

try {
const bot = createBot(config.BOT_TOKEN);
Expand Down
7 changes: 1 addition & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
"moduleResolution": "NodeNext",
"sourceMap": true,
"outDir": "build",
"rootDir": "./src",
"paths": {
"#root/*": [
"./src/*"
]
}
"rootDir": "./src"
},
"include": [
"api/**/*",
Expand Down

0 comments on commit 93e609b

Please sign in to comment.