egg-core
Advanced tools
Comparing version 5.3.0 to 5.3.1
@@ -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": "5.3.0", | ||
"version": "5.3.1", | ||
"description": "A core Pluggable framework based on koa", | ||
@@ -36,3 +36,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">= 14.17.0" | ||
"node": ">= 14.19.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
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
113385
3047