Skip to content

Commit 6922071

Browse files
authored
fix: fix standalone import ConfigSource (#163)
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md --> ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] `npm test` passes - [x] tests and/or benchmarks are included - [ ] documentation is changed or added - [x] commit message follows commit guidelines ##### Affected core subsystem(s) <!-- Provide affected core subsystem(s). --> ##### Description of change <!-- Provide a description of the change below this comment. --> <!-- - any feature? - close https://github.com/eggjs/egg/ISSUE_URL -->
1 parent 019ae49 commit 6922071

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

plugin/orm/lib/LeoricRegister.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Base from 'sdk-base';
22
import { ModelProtoManager } from './ModelProtoManager';
33
import { DataSourceManager, OrmConfig } from './DataSourceManager';
44
import Realm from 'leoric';
5-
import { hookNames } from 'leoric/src/setup_hooks';
5+
import { hookNames } from 'leoric/lib/setup_hooks';
66
import { ModelMetadata, ModelMetadataUtil } from '@eggjs/tegg-orm-decorator';
77

88
export class LeoricRegister extends Base {

plugin/orm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@eggjs/tegg-runtime": "^3.25.0",
5959
"@types/koa-router": "^7.0.40",
6060
"koa-compose": "^3.2.1",
61-
"leoric": "^2.6.1",
61+
"leoric": "^2.11.5",
6262
"sdk-base": "^4.2.0"
6363
},
6464
"devDependencies": {

standalone/standalone/src/Runner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
LoadUnitInstanceFactory,
1313
ModuleLoadUnitInstance,
1414
} from '@eggjs/tegg-runtime';
15-
import { EggProtoImplClass, PrototypeUtil, ModuleConfigHolder, ModuleConfigs } from '@eggjs/tegg';
15+
import { EggProtoImplClass, PrototypeUtil, ModuleConfigHolder, ModuleConfigs, ConfigSourceQualifierAttribute } from '@eggjs/tegg';
1616
import { StandaloneUtil, MainRunner } from '@eggjs/tegg/standalone';
1717
import { CrosscutAdviceFactory } from '@eggjs/tegg/aop';
1818
import { EggObjectAopHook, EggPrototypeCrossCutHook, LoadUnitAopHook } from '@eggjs/tegg-aop-runtime';
@@ -21,7 +21,6 @@ import { EggModuleLoader } from './EggModuleLoader';
2121
import { InnerObject, StandaloneLoadUnit, StandaloneLoadUnitType } from './StandaloneLoadUnit';
2222
import { StandaloneContext } from './StandaloneContext';
2323
import { StandaloneContextHandler } from './StandaloneContextHandler';
24-
import { ConfigSourceQualifierAttribute } from '@eggjs/core-decorator/src/decorator/ConfigSource';
2524
import { ConfigSourceLoadUnitHook } from './ConfigSourceLoadUnitHook';
2625
import { LoadUnitInnerClassHook } from './LoadUnitInnerClassHook';
2726

0 commit comments

Comments
 (0)