mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-05 01:01:51 +01:00
refactor(data-schemas): update tsconfig and import paths for improved module resolution
- Added baseUrl and paths configuration to tsconfig.json for better module resolution. - Updated import statement in mongoMeili.ts to use the new path alias for the meiliLogger configuration.
This commit is contained in:
parent
848cb6f871
commit
30b8a1c6c4
2 changed files with 7 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import _ from 'lodash';
|
||||
import mongoose, { Schema, Document, Model, Query } from 'mongoose';
|
||||
import { MeiliSearch, Index } from 'meilisearch';
|
||||
import logger from '../../config/meiliLogger';
|
||||
import logger from '~/config/meiliLogger';
|
||||
|
||||
interface MongoMeiliOptions {
|
||||
host: string;
|
||||
|
|
|
|||
|
|
@ -12,9 +12,12 @@
|
|||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
"sourceMap": true
|
||||
"sourceMap": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist", "tests"],
|
||||
"esModuleInterop": true
|
||||
"exclude": ["node_modules", "dist", "tests"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue