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 express from 'express'
|
||||||
import { engine } from 'express-handlebars'
|
import { engine } from 'express-handlebars'
|
||||||
import basicAuth from 'express-basic-auth'
|
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'
|
import Pagination from './pagination.ts'
|
||||||
|
|
||||||
// eslint-disable-next-line import/prefer-default-export
|
// eslint-disable-next-line import/prefer-default-export
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable object-shorthand */
|
/* eslint-disable object-shorthand */
|
||||||
/* eslint-disable func-names */
|
/* eslint-disable func-names */
|
||||||
import { UserProfile } from '../../../models/dist/index.js'
|
import { UserProfile } from '@linux-odyssey/models'
|
||||||
|
|
||||||
export function questList() {
|
export function questList() {
|
||||||
return UserProfile.aggregate([
|
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 Pagination from './pagination.js'
|
||||||
import {
|
import {
|
||||||
CommandObject,
|
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 Pagination from './pagination.js'
|
||||||
import { Types } from 'mongoose'
|
import { Types } from 'mongoose'
|
||||||
import { IUser, UserSessionDetail } from '../interface.js'
|
import { IUser, UserSessionDetail } from '../interface.js'
|
||||||
|
|||||||
@@ -6,7 +6,11 @@
|
|||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"strict": false,
|
"strict": false,
|
||||||
"allowImportingTsExtensions": true
|
"allowImportingTsExtensions": true,
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@linux-odyssey/models": ["./packages/models"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": ["node_modules", "dist"],
|
"exclude": ["node_modules", "dist"],
|
||||||
|
|||||||
Reference in new issue
Block a user