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
@@ -3,13 +3,9 @@ import fs from 'fs/promises'
|
||||
import path from 'path'
|
||||
import yaml from 'yaml'
|
||||
|
||||
import type { QuestLocale } from '../../../packages/constants'
|
||||
import { SUPPORTED_LOCALES } from '../../../packages/constants'
|
||||
import {
|
||||
questSchema,
|
||||
globalExceptionSchema,
|
||||
IQuest,
|
||||
} from '../../../packages/game'
|
||||
import type { QuestLocale } from '@odyssey/constants'
|
||||
import { SUPPORTED_LOCALES } from '@odyssey/constants'
|
||||
import { questSchema, globalExceptionSchema, IQuest } from '@odyssey/game'
|
||||
import logger from '../utils/logger.js'
|
||||
import config from '../config.js'
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { HydratedDocument } from 'mongoose'
|
||||
import type { QuestLocale } from '../../../packages/constants'
|
||||
import { LOCALE_NAME_MAP } from '../../../packages/constants'
|
||||
import { Session, UserProfile } from '../../../packages/models'
|
||||
import type { ISession, IUser } from '../../../packages/models'
|
||||
import type { QuestLocale } from '@odyssey/constants'
|
||||
import { LOCALE_NAME_MAP } from '@odyssey/constants'
|
||||
import { Session, UserProfile } from '@odyssey/models'
|
||||
import type { ISession, IUser } from '@odyssey/models'
|
||||
import {
|
||||
createContainer,
|
||||
deleteContainer,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Express } from 'express'
|
||||
import { format } from 'date-fns'
|
||||
import { User, UserProfile } from '../../../packages/models'
|
||||
import { User, UserProfile } from '@odyssey/models'
|
||||
import { hashPassword } from '../utils/auth.js'
|
||||
|
||||
export async function createUser(
|
||||
|
||||
Reference in new issue
Block a user