egg-core
Advanced tools
Comparing version 4.30.0 to 4.30.1
@@ -34,6 +34,2 @@ 'use strict'; | ||
options.baseDir = options.baseDir || process.cwd(); | ||
// auto require('tsconfig-paths/register') on typescript app | ||
if (process.env.EGG_TYPESCRIPT === 'true') { | ||
require('tsconfig-paths').register({ cwd: options.baseDir }); | ||
} | ||
options.type = options.type || 'application'; | ||
@@ -40,0 +36,0 @@ |
@@ -46,2 +46,8 @@ 'use strict'; | ||
// auto require('tsconfig-paths/register') on typescript app | ||
// support env.EGG_TYPESCRIPT = true or { "egg": { "typescript": true } } on package.json | ||
if (process.env.EGG_TYPESCRIPT === 'true' || (this.pkg.egg && this.pkg.egg.typescript)) { | ||
require('tsconfig-paths').register({ cwd: this.options.baseDir }); | ||
} | ||
/** | ||
@@ -48,0 +54,0 @@ * All framework directories. |
{ | ||
"name": "egg-core", | ||
"version": "4.30.0", | ||
"version": "4.30.1", | ||
"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
111985
3019
21087