Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: loader should not deps metadata #94

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

killagu
Copy link
Contributor

@killagu killagu commented Feb 9, 2023

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@killagu killagu force-pushed the deps/loader_metadata branch 3 times, most recently from 1d8d9b2 to ba003ed Compare February 9, 2023 15:01
@killagu killagu force-pushed the deps/loader_metadata branch from ba003ed to df2c482 Compare February 9, 2023 15:01
@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Base: 92.92% // Head: 92.91% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (df2c482) compared to base (3385d57).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #94      +/-   ##
==========================================
- Coverage   92.92%   92.91%   -0.01%     
==========================================
  Files         217      217              
  Lines        4549     4548       -1     
  Branches      472      472              
==========================================
- Hits         4227     4226       -1     
  Misses        322      322              
Impacted Files Coverage Δ
core/loader/src/LoaderFactory.ts 88.88% <ø> (ø)
core/loader/src/impl/ModuleLoader.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -5,7 +5,7 @@ import { LoaderUtil } from '../LoaderUtil';

import { EggProtoImplClass } from '@eggjs/core-decorator';
import { LoaderFactory } from '../LoaderFactory';
import { EggLoadUnitType, Loader } from '@eggjs/tegg-metadata';
import type { Loader } from '@eggjs/tegg-metadata';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

哈哈,看代码的人脑袋要转弯才明白 type 只需要通过 devDeps 引入 @eggjs/tegg-metadata

@killagu killagu merged commit ff57de4 into master Feb 9, 2023
@killagu killagu deleted the deps/loader_metadata branch February 9, 2023 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants