@tuya-miniapp/ark-extension-virtual-device 0.0.31 → 0.0.32
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/worker/index.js +7 -2
- package/package.json +1 -1
package/dist/worker/index.js
CHANGED
|
@@ -173721,8 +173721,13 @@ var editProjectConfig = async (values) => {
|
|
|
173721
173721
|
...config || {},
|
|
173722
173722
|
...values || {}
|
|
173723
173723
|
};
|
|
173724
|
-
|
|
173725
|
-
|
|
173724
|
+
const nextConfig = {};
|
|
173725
|
+
const configObj = require(configPath);
|
|
173726
|
+
for (const key in configObj) {
|
|
173727
|
+
nextConfig[key] = newConfig[key];
|
|
173728
|
+
}
|
|
173729
|
+
await import_fs_extra.default.writeFile(configPath, JSON.stringify(nextConfig, null, 2));
|
|
173730
|
+
console.log("backend editProjectConfig after >>", nextConfig);
|
|
173726
173731
|
return true;
|
|
173727
173732
|
} catch (error) {
|
|
173728
173733
|
console.log("backend editProjectConfig Error >>", error);
|