Skip to content

Commit 8ccec23

Browse files
committed
feature: cloudcmd: help: require -> import
1 parent 2a97ac6 commit 8ccec23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/cloudcmd.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,11 @@ async function readConfig(name) {
316316
}
317317

318318
async function help() {
319-
const bin = require('../json/help.json');
319+
const {default: bin} = await import('../json/help.json', {
320+
with: {
321+
type: 'json'
322+
}
323+
});
320324
const forEachKey = await simport('for-each-key');
321325
const currify = await simport('currify');
322326

0 commit comments

Comments
 (0)