@tmsfe/tmskit 0.0.44 → 0.0.46
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/index.cjs.js +3 -4
- package/package.json +1 -1
- package/src/core/tmsMpconfig.js +2 -3
package/dist/index.cjs.js
CHANGED
|
@@ -603,8 +603,8 @@ var global_1 = {
|
|
|
603
603
|
fail(`${path.dirname(tmsConfigPath)}没有找到tms.config.js,请进行配置`);
|
|
604
604
|
process.exit(1);
|
|
605
605
|
}
|
|
606
|
-
const isDev = global.getData('isDev');
|
|
607
606
|
const tmsConfigFn = require(tmsConfigPath);
|
|
607
|
+
const isDev = global.getData('isDev');
|
|
608
608
|
const tmsConfig = typeof tmsConfigFn === 'function' ? tmsConfigFn({
|
|
609
609
|
isDev
|
|
610
610
|
}) : tmsConfigFn;
|
|
@@ -621,9 +621,8 @@ var global_1 = {
|
|
|
621
621
|
let tmsPrivateCf = {};
|
|
622
622
|
const tmsPrivatePath = configPath ? `${configPath}/${TMS_PRIVATE_FILENAME}` : resolve(TMS_PRIVATE_FILENAME);
|
|
623
623
|
if (fs.existsSync(tmsPrivatePath)) {
|
|
624
|
-
const isDev = global.getData('isDev');
|
|
625
|
-
console.log(isDev, 'isDev');
|
|
626
624
|
const tmsPrivateFn = require(tmsPrivatePath);
|
|
625
|
+
const isDev = global.getData('isDev');
|
|
627
626
|
tmsPrivateCf = typeof tmsPrivateFn === 'function' ? tmsPrivateFn({
|
|
628
627
|
isDev
|
|
629
628
|
}) : tmsPrivateFn;
|
|
@@ -4197,7 +4196,7 @@ var entry = [{
|
|
|
4197
4196
|
|
|
4198
4197
|
var require$$12 = {
|
|
4199
4198
|
name: "@tmsfe/tmskit",
|
|
4200
|
-
version: "0.0.
|
|
4199
|
+
version: "0.0.46",
|
|
4201
4200
|
description: "tmskit",
|
|
4202
4201
|
main: "dist/index.cjs",
|
|
4203
4202
|
bin: {
|
package/package.json
CHANGED
package/src/core/tmsMpconfig.js
CHANGED
|
@@ -23,8 +23,8 @@ const readTmsConfig = function (configPath) {
|
|
|
23
23
|
fail(`${path.dirname(tmsConfigPath)}没有找到tms.config.js,请进行配置`);
|
|
24
24
|
process.exit(1);
|
|
25
25
|
}
|
|
26
|
-
const isDev = global.getData('isDev');
|
|
27
26
|
const tmsConfigFn = require(tmsConfigPath);
|
|
27
|
+
const isDev = global.getData('isDev');
|
|
28
28
|
const tmsConfig = typeof tmsConfigFn === 'function' ? tmsConfigFn({ isDev }) : tmsConfigFn;
|
|
29
29
|
|
|
30
30
|
// 合并默认值
|
|
@@ -40,9 +40,8 @@ const readTmsPrivateCf = function (configPath) {
|
|
|
40
40
|
let tmsPrivateCf = {};
|
|
41
41
|
const tmsPrivatePath = configPath ? `${configPath}/${TMS_PRIVATE_FILENAME}` : resolve(TMS_PRIVATE_FILENAME);
|
|
42
42
|
if (fs.existsSync(tmsPrivatePath)) {
|
|
43
|
-
const isDev = global.getData('isDev');
|
|
44
|
-
console.log(isDev, 'isDev');
|
|
45
43
|
const tmsPrivateFn = require(tmsPrivatePath);
|
|
44
|
+
const isDev = global.getData('isDev');
|
|
46
45
|
tmsPrivateCf = typeof tmsPrivateFn === 'function' ? tmsPrivateFn({ isDev }) : tmsPrivateFn;
|
|
47
46
|
}
|
|
48
47
|
|