@x-9lab/xlab 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/global.js +1 -1
- package/dist/init-env.js +1 -2
- package/package.json +1 -1
package/dist/global.js
CHANGED
package/dist/init-env.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _common = require("./components/common");
|
|
3
|
-
var _log = require("./components/log");
|
|
4
3
|
var _defaultXConfig = _interopRequireDefault(require("./default-x-config"));
|
|
5
4
|
var _path = require("path");
|
|
6
5
|
function _interopRequireDefault(obj) {
|
|
@@ -12,7 +11,7 @@ function tryToSetEnv() {
|
|
|
12
11
|
const envPath = (0, _path).resolve(process.cwd(), _defaultXConfig.default.businessDir, "@env", "index.js");
|
|
13
12
|
var hasInitModule = (0, _common).checkFileStat(envPath, true);
|
|
14
13
|
if (hasInitModule) {
|
|
15
|
-
|
|
14
|
+
// globalLog("InitEnv", "Try to init env");
|
|
16
15
|
require(envPath);
|
|
17
16
|
}
|
|
18
17
|
}
|