-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ change typescript aliases from `@<module>` to `@/<module>` (ex: `@services` -> `@/services` to distinguish them from external npm packages
- Loading branch information
Showing
115 changed files
with
4,954 additions
and
4,144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
**Please describe the changes this PR makes and why it should be merged:** | ||
**Please describe the changes this PR makes and why it should be merged:** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
// @ts-nocheck | ||
|
||
import { mikroORMConfig } from "./src/configs/database" | ||
import * as entities from "@entities" | ||
import { PluginsManager } from "@services" | ||
import { Options } from "@mikro-orm/core" | ||
import { resolveDependency } from "@utils/functions" | ||
import process from 'node:process' | ||
|
||
import { Options } from '@mikro-orm/core' | ||
|
||
import * as entities from '@/entities' | ||
import { PluginsManager } from '@/services' | ||
import { resolveDependency } from '@/utils/functions' | ||
|
||
import { mikroORMConfig } from './src/configs/database' | ||
|
||
export default async () => { | ||
const pluginsManager = await resolveDependency(PluginsManager) | ||
await pluginsManager.loadPlugins() | ||
|
||
return { | ||
...mikroORMConfig[process.env.NODE_ENV || 'development'] as Options<DatabaseDriver>, | ||
entities: [...Object.values(entities), ...pluginsManager.getEntities()] | ||
} | ||
} | ||
const pluginsManager = await resolveDependency(PluginsManager) | ||
await pluginsManager.loadPlugins() | ||
|
||
return { | ||
...mikroORMConfig[process.env.NODE_ENV || 'development'] as Options<DatabaseDriver>, | ||
entities: [...Object.values(entities), ...pluginsManager.getEntities()], | ||
} | ||
|
||
} |
Oops, something went wrong.