mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(cloudcmd) validateRoot: import -> simport: forEachKey is not a function (#311)
This commit is contained in:
parent
0967ad12e8
commit
394bf46eca
1 changed files with 2 additions and 2 deletions
|
|
@ -217,7 +217,7 @@ async function main() {
|
||||||
config.write();
|
config.write();
|
||||||
|
|
||||||
await tryToCatch(checkUpdate);
|
await tryToCatch(checkUpdate);
|
||||||
await importConfig(config);
|
await simportConfig(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function validateRoot(root, config) {
|
async function validateRoot(root, config) {
|
||||||
|
|
@ -270,7 +270,7 @@ async function readConfig(name) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const tryToCatch = await simport('try-to-catch');
|
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);
|
const [error, data] = await tryToCatch(simport, name);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue