mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature: distribute: convert to ESM
This commit is contained in:
parent
faa2cb3f90
commit
d75818297b
9 changed files with 78 additions and 82 deletions
|
|
@ -241,8 +241,8 @@ async function main() {
|
|||
if (args.showConfig)
|
||||
await showConfig();
|
||||
|
||||
const distribute = await simport('../server/distribute/index.js');
|
||||
const importConfig = promisify(distribute.import);
|
||||
const {distributeImport} = await simport('../server/distribute/import.mjs');
|
||||
const importConfig = promisify(distributeImport);
|
||||
|
||||
await start(options, config);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue