mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: file imports
This commit is contained in:
1 parent
685be8c1d2
commit
e31511fdc1
6 files changed
+10
-6
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import connectDB from '../../models/dist/index.js'
|
||||
import connectDB from '@linux-odyssey/models'
|
||||
import express from 'express'
|
||||
import { engine } from 'express-handlebars'
|
||||
import basicAuth from 'express-basic-auth'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Command } from '../../../models/dist/index.js'
|
||||
import { Command } from '@linux-odyssey/models'
|
||||
import Pagination from './pagination.ts'
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable object-shorthand */
|
||||
/* eslint-disable func-names */
|
||||
import { UserProfile } from '../../../models/dist/index.js'
|
||||
import { UserProfile } from '@linux-odyssey/models'
|
||||
|
||||
export function questList() {
|
||||
return UserProfile.aggregate([
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Command, Session } from '../../../models/dist/index.js'
|
||||
import { Command, Session } from '@linux-odyssey/models'
|
||||
import Pagination from './pagination.js'
|
||||
import {
|
||||
CommandObject,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Session, User } from '../../../models/dist/index.js'
|
||||
import { Session, User } from '@linux-odyssey/models'
|
||||
import Pagination from './pagination.js'
|
||||
import { Types } from 'mongoose'
|
||||
import { IUser, UserSessionDetail } from '../interface.js'
|
||||
|
||||
@@ -6,7 +6,11 @@
|
||||
"esModuleInterop": true,
|
||||
"noEmit": true,
|
||||
"strict": false,
|
||||
"allowImportingTsExtensions": true
|
||||
"allowImportingTsExtensions": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@linux-odyssey/models": ["./packages/models"]
|
||||
}
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules", "dist"],
|
||||
|
||||
Reference in new issue
Block a user