mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
refactor: use bun for package management
+ add package.json to each packages + update import path
This commit is contained in:
1 parent
fb7dc0eb73
commit
2feedc329c
47 files changed
+2893
-8818
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import type { Request, Response } from 'express'
|
||||
import { GameSession, commandSchema } from '../../../../packages/game'
|
||||
import { Command, Session } from '../../../../packages/models'
|
||||
import { GameSession, commandSchema } from '@odyssey/game'
|
||||
import { Command, Session } from '@odyssey/models'
|
||||
import { pushToSession } from '../socket'
|
||||
import { finishSession } from '../../models/sessionManager'
|
||||
import { asyncHandler } from '../../middleware/error'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Router, Request, Response, Express } from 'express'
|
||||
import passport from 'passport'
|
||||
import { NextFunction } from 'express-serve-static-core'
|
||||
import { LoginAttempt } from '../../../../packages/models'
|
||||
import { LoginAttempt } from '@odyssey/models'
|
||||
import enabledMethods from '../../auth/passport.js'
|
||||
|
||||
import {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Server } from 'socket.io'
|
||||
import type { Socket } from 'socket.io'
|
||||
import validator from 'validator'
|
||||
import type { Server as HttpServer } from 'http'
|
||||
import { Session } from '../../../packages/models'
|
||||
import { Session } from '@odyssey/models'
|
||||
import SessionMiddleware from '../middleware/session.js'
|
||||
import logger from '../utils/logger.js'
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { check } from 'express-validator'
|
||||
|
||||
import { isValidUsername, isValidEmail } from '../../../../packages/utils'
|
||||
import { User } from '../../../../packages/models'
|
||||
import { passwordPolicy } from '../../../../packages/constants'
|
||||
import { isValidUsername, isValidEmail } from '@odyssey/utils'
|
||||
import { User } from '@odyssey/models'
|
||||
import { passwordPolicy } from '@odyssey/constants'
|
||||
import { noError } from '../../middleware/validator.js'
|
||||
|
||||
const checkUsername = () =>
|
||||
|
||||
Reference in new issue
Block a user