Skip to content

Commit 9e3405c

Browse files
committed
fix: revert dynamic imports
1 parent a5ae29c commit 9e3405c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/cli/src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { handleTranslations } from './commands/translations';
2525
import { handleEject } from './commands/eject';
2626
import { PRODUCT_PLANS } from './commands/preview-project/constants';
2727
import { commonPushHandler } from './commands/push';
28+
import { handleRun, handleGenerate } from '@redocly/respect-core';
2829

2930
import type { Arguments } from 'yargs';
3031
import type { OutputFormat, RuleSeverity } from '@redocly/openapi-core';
@@ -932,9 +933,8 @@ yargs
932933
},
933934
});
934935
},
935-
async (argv) => {
936+
(argv) => {
936937
process.env.REDOCLY_CLI_COMMAND = 'respect';
937-
const { handleRun } = await import('@redocly/respect-core');
938938
commandWrapper(handleRun)(argv);
939939
}
940940
)
@@ -961,9 +961,8 @@ yargs
961961
},
962962
});
963963
},
964-
async (argv) => {
964+
(argv) => {
965965
process.env.REDOCLY_CLI_COMMAND = 'generate-arazzo';
966-
const { handleGenerate } = await import('@redocly/respect-core');
967966
commandWrapper(
968967
handleGenerate as (wrapperArgs: CommandArgs<CommandOptions>) => Promise<unknown>
969968
)(argv);

0 commit comments

Comments
 (0)