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

Config baseDir support array #89

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

whu12yz
Copy link

@whu12yz whu12yz commented Jan 17, 2021

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • 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 whu12yz changed the title Feat/base dir array Config baseDir support array Jan 17, 2021
@codecov
Copy link

codecov bot commented Jan 17, 2021

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%) ⬆️

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.

@whu12yz
Copy link
Author

whu12yz commented Jan 18, 2021

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

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.

1 participant