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:
Danny Avila
2025-05-30 00:54:50 -04:00
parent 848cb6f871
commit 30b8a1c6c4
2 changed files with 7 additions and 4 deletions

View File

@@ -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;

View File

@@ -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"]
}