Comparing version 4.5.0 to 4.6.0
4.6.0 / 2018-04-09 | ||
================== | ||
**features** | ||
* [[`7f087e7`](http://github.com/eggjs/egg-core/commit/7f087e7d30bf9b07249b44fb943bcc9d109f26f6)] - feat: change assert to warning (#157) (Axes <<whxaxes@qq.com>>) | ||
4.5.0 / 2018-03-25 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -33,2 +33,6 @@ 'use strict'; | ||
if (options.typescript && !require.extensions['.ts']) { | ||
this.options.logger.warn('[egg:loader] `require.extensions` should contains `.ts` while `options.typescript` was true'); | ||
} | ||
this.app = this.options.app; | ||
@@ -35,0 +39,0 @@ |
@@ -53,5 +53,2 @@ 'use strict'; | ||
assert(options.target, 'options.target is required'); | ||
if (options.typescript) { | ||
assert(require.extensions['.ts'], '`require.extensions` should contains `.ts` while `options.typescript` was true'); | ||
} | ||
this.options = Object.assign({}, defaults, options); | ||
@@ -131,3 +128,3 @@ | ||
if (!files) { | ||
files = this.options.typescript | ||
files = (this.options.typescript && require.extensions['.ts']) | ||
? [ '**/*.(js|ts)', '!**/*.d.ts' ] | ||
@@ -134,0 +131,0 @@ : [ '**/*.js' ]; |
{ | ||
"name": "egg-core", | ||
"version": "4.5.0", | ||
"version": "4.6.0", | ||
"description": "A core Pluggable framework based on koa", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98617