egg-sequelize icon indicating copy to clipboard operation
egg-sequelize copied to clipboard

Config baseDir support array

Open whu12yz opened this issue 4 years ago • 2 comments

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

Affect baseDir config!

Description of change

Config options baseDir support directory array, And also compatible with string! example:

exports.sequelize = {
   baseDir: ['model', 'other-model'], // load all files in `app/${baseDir}` as models, default to `model`
};

whu12yz avatar Jan 17 '21 14:01 whu12yz

Codecov Report

Merging #89 (33816cb) into master (f585da5) will increase coverage by 0.43%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #89      +/-   ##
==========================================
+ Coverage   85.71%   86.15%   +0.43%     
==========================================
  Files           4        4              
  Lines          63       65       +2     
==========================================
+ Hits           54       56       +2     
  Misses          9        9              
Impacted Files Coverage Δ
lib/loader.js 85.00% <100.00%> (+0.51%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a126c2b...c43fcd7. Read the comment docs.

codecov[bot] avatar Jan 17 '21 14:01 codecov[bot]

travis-ci npm install error cause of index.d.ts change?

whu12yz avatar Jan 18 '21 03:01 whu12yz