@tuya-sat/micro-script 3.0.21-beta.6 → 3.0.21

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.
@@ -71,7 +71,7 @@ function getCommonConfig({ isDev, isBuild, }) {
71
71
  return loaders;
72
72
  };
73
73
  let { multiApps, debuggerConfig: { isMainApp }, } = require(paths_1.default.microConfig);
74
- (0, utils_1.processMultiApps)(multiApps);
74
+ multiApps = (0, utils_1.processMultiApps)(multiApps);
75
75
  const multiAppsWebpackConfig = {
76
76
  plugins: [],
77
77
  entry: {},
@@ -36,7 +36,7 @@ const utils_1 = require("../../utils");
36
36
  function mockSaasInfo(app, microPort) {
37
37
  let { multiApps, debuggerConfig: { isMainApp }, } = require(paths_1.default.microConfig);
38
38
  const idsMap = new Map();
39
- (0, utils_1.processMultiApps)(multiApps);
39
+ multiApps = (0, utils_1.processMultiApps)(multiApps);
40
40
  multiApps === null || multiApps === void 0 ? void 0 : multiApps.forEach((app) => {
41
41
  idsMap.set(app.name, { entry_id: (0, uuid_1.v4)(), oem_micro_app_id: (0, uid_1.uid)(16) });
42
42
  });
@@ -5,4 +5,4 @@ export declare type IMultiApp = {
5
5
  dir?: string;
6
6
  htmlContentHash?: boolean;
7
7
  };
8
- export declare const processMultiApps: (multiApps: IMultiApp[]) => void;
8
+ export declare const processMultiApps: (multiApps: IMultiApp[]) => IMultiApp[];
@@ -59,5 +59,6 @@ const processMultiApps = (multiApps) => {
59
59
  multiApps = [...multiApps, { name: dir }];
60
60
  });
61
61
  }
62
+ return multiApps;
62
63
  };
63
64
  exports.processMultiApps = processMultiApps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "3.0.21-beta.6",
3
+ "version": "3.0.21",
4
4
  "bin": "./dist/bin/cli.js",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
@@ -23,9 +23,9 @@
23
23
  "@babel/preset-typescript": "7.16.7",
24
24
  "@babel/traverse": "^7.20.13",
25
25
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
26
- "@tuya-sat/micro-dev-loader": "3.0.21-beta.6",
27
- "@tuya-sat/micro-dev-proxy": "3.0.21-beta.6",
28
- "@tuya-sat/micro-utils": "3.0.21-beta.6",
26
+ "@tuya-sat/micro-dev-loader": "3.0.21",
27
+ "@tuya-sat/micro-dev-proxy": "3.0.21",
28
+ "@tuya-sat/micro-utils": "3.0.21",
29
29
  "@types/kill-port": "^2.0.0",
30
30
  "babel-loader": "8.2.4",
31
31
  "babel-plugin-import": "1.13.3",