fix(cloudcmd) validateRoot: import -> simport: forEachKey is not a function (#311)

This commit is contained in:
coderaiser 2021-01-05 17:51:26 +02:00
parent 0967ad12e8
commit 394bf46eca

View file

@ -217,7 +217,7 @@ async function main() {
config.write();
await tryToCatch(checkUpdate);
await importConfig(config);
await simportConfig(config);
}
async function validateRoot(root, config) {
@ -270,7 +270,7 @@ async function readConfig(name) {
return;
const tryToCatch = await simport('try-to-catch');
const forEachKey = await import('for-each-key');
const forEachKey = await simport('for-each-key');
const [error, data] = await tryToCatch(simport, name);