mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +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
@@ -11,6 +11,7 @@
|
||||
"dev": "tsx watch src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@odyssey/models": "workspace:*",
|
||||
"dotenv": "^16.4.5",
|
||||
"express": "^4.20.0",
|
||||
"express-basic-auth": "^1.2.1",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import express from 'express'
|
||||
import { engine } from 'express-handlebars'
|
||||
import basicAuth from 'express-basic-auth'
|
||||
import { connectDB } from '../../../packages/models'
|
||||
import { connectDB } from '@odyssey/models'
|
||||
import config from './config'
|
||||
import router from './router'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Command } from '../../../../packages/models'
|
||||
import { Command } from '@odyssey/models'
|
||||
import Pagination from './pagination'
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UserProfile } from '../../../../packages/models'
|
||||
import { UserProfile } from '@odyssey/models'
|
||||
|
||||
export interface QuestProgress {
|
||||
_id: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Command, Session } from '../../../../packages/models'
|
||||
import { Command, Session } from '@odyssey/models'
|
||||
import Pagination from './pagination'
|
||||
import {
|
||||
CommandObject,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HydratedDocument, Types } from 'mongoose'
|
||||
import { Session, User, IUser, ISession } from '../../../../packages/models'
|
||||
import { Session, User, IUser, ISession } from '@odyssey/models'
|
||||
import Pagination from './pagination'
|
||||
import { UserSessionDetail } from '../interface'
|
||||
|
||||
|
||||
Reference in new issue
Block a user