Skip to content

Commit

Permalink
fix: add ts autoload directory
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Nov 13, 2018
1 parent 9d7abe6 commit a6668fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/midway-core/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export function app(name, options) {
// mm.consoleLevel(options.consoleLevel || 'NONE');
if (options.container) {
Object.assign(options.container,
{loadDir: ['app', 'lib']}
{loadDir: ['src', 'app', 'lib']}
);
} else {
options.container = {
loadDir: ['app', 'lib']
loadDir: ['src', 'app', 'lib']
};
}
const app = mm.app(options);
Expand Down
6 changes: 5 additions & 1 deletion packages/midway-web/config/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ module.exports = (appInfo) => {
};

exports.container = {
loadDir: ['src'],
loadDir: [
'src', // for ts
'app', // for js
'lib' // for js
],
ignore: [
'**/node_modules/**',
'**/logs/**',
Expand Down

0 comments on commit a6668fb

Please sign in to comment.