mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
refactor: use bun to execute server and analytics
This commit is contained in:
1 parent
2feedc329c
commit
77577d9b8d
13 files changed
+128
-120
No files matched your search
@@ -1,8 +1,6 @@
|
||||
import { Router } from 'express'
|
||||
import passport from 'passport'
|
||||
import commands from './commandRouter.js'
|
||||
import authRouter from './authRouter.js'
|
||||
import authRequired from '../../middleware/authRequired.js'
|
||||
import config from '../../config.js'
|
||||
import leaderboardController from '../controllers/leaderboardController.js'
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ function createConfig() {
|
||||
|
||||
function getProjectRoot(): string {
|
||||
// Start from the current file's directory
|
||||
let currentDir = __dirname
|
||||
let currentDir = import.meta.dir
|
||||
|
||||
// Keep going up until we find the root package.json with workspaces
|
||||
while (currentDir !== path.parse(currentDir).root) {
|
||||
|
||||
Reference in new issue
Block a user