@tuya-sat/micro-script 3.2.7 → 3.2.9
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.
|
@@ -114,7 +114,7 @@ function getFakeSaas(config) {
|
|
|
114
114
|
const __MAIN_APP_PUBLIC_PATH = parse__MAIN_APP_PUBLIC_PATH(data);
|
|
115
115
|
const saas = {
|
|
116
116
|
_SDF_CONFIG: JSON.parse(_SDF_CONFIG),
|
|
117
|
-
_SDF: Object.assign(Object.assign({}, JSON.parse(_SDF)), { isOpenCode: !!((_a = process.env) === null || _a === void 0 ? void 0 : _a.IS_OPEN_CODE) }),
|
|
117
|
+
_SDF: Object.assign(Object.assign({}, JSON.parse(_SDF)), { isOpenCode: !!((_a = process.env) === null || _a === void 0 ? void 0 : _a.IS_OPEN_CODE), __THIS_IS_LOCAL_DEVELOPMENT_MODE__: true }),
|
|
118
118
|
__MAIN_APP_PUBLIC_PATH: JSON.parse(__MAIN_APP_PUBLIC_PATH),
|
|
119
119
|
};
|
|
120
120
|
return saas;
|
|
@@ -114,11 +114,10 @@ function insertScript($, debuggerConfig) {
|
|
|
114
114
|
return item.config_key === 'dynamic_theme';
|
|
115
115
|
}) || initalCustom_configs(saas);
|
|
116
116
|
const theme = (0, webpack_common_1.validateMicroTheme)();
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
supportedTheme
|
|
120
|
-
|
|
121
|
-
: {})), readThemeConfig()));
|
|
117
|
+
const configJson = JSON.parse(themeConfig.config_value_json);
|
|
118
|
+
themeConfig.config_value_json = JSON.stringify(Object.assign(Object.assign(Object.assign({}, configJson), { supportedTheme: configJson.supportedTheme === 'all'
|
|
119
|
+
? configJson.supportedTheme
|
|
120
|
+
: theme }), readThemeConfig()));
|
|
122
121
|
overrideNotification(saas);
|
|
123
122
|
if (fs.existsSync(path.join(process.cwd(), 'saas-info.config.json'))) {
|
|
124
123
|
const saasInfo = fs.readJSONSync(path.join(process.cwd(), 'saas-info.config.json'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuya-sat/micro-script",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.9",
|
|
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.2.
|
|
27
|
-
"@tuya-sat/micro-dev-proxy": "3.2.
|
|
28
|
-
"@tuya-sat/micro-utils": "3.2.
|
|
26
|
+
"@tuya-sat/micro-dev-loader": "3.2.9",
|
|
27
|
+
"@tuya-sat/micro-dev-proxy": "3.2.9",
|
|
28
|
+
"@tuya-sat/micro-utils": "3.2.9",
|
|
29
29
|
"@types/kill-port": "^2.0.0",
|
|
30
30
|
"babel-loader": "8.2.4",
|
|
31
31
|
"babel-plugin-import": "1.13.3",
|