egg-core
Advanced tools
Comparing version 4.30.1 to 4.30.2
@@ -49,3 +49,9 @@ 'use strict'; | ||
if (process.env.EGG_TYPESCRIPT === 'true' || (this.pkg.egg && this.pkg.egg.typescript)) { | ||
require('tsconfig-paths').register({ cwd: this.options.baseDir }); | ||
// skip require tsconfig-paths if tsconfig.json not exists | ||
const tsConfigFile = path.join(this.options.baseDir, 'tsconfig.json'); | ||
if (fs.existsSync(tsConfigFile)) { | ||
require('tsconfig-paths').register({ cwd: this.options.baseDir }); | ||
} else { | ||
this.options.logger.info('[egg:loader] skip register "tsconfig-paths" because tsconfig.json not exists at %s', tsConfigFile); | ||
} | ||
} | ||
@@ -52,0 +58,0 @@ |
{ | ||
"name": "egg-core", | ||
"version": "4.30.1", | ||
"version": "4.30.2", | ||
"publishConfig": { | ||
"tag": "latest-4" | ||
}, | ||
"description": "A core Pluggable framework based on koa", | ||
@@ -5,0 +8,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
112375
3025