There was an error while loading. Please reload this page.
1 parent 5734073 commit 267ca09Copy full SHA for 267ca09
1 file changed
packages/rstack/src/cli/commands.ts
@@ -58,7 +58,14 @@ async function runRstestCLI(args: string[]): Promise<void> {
58
),
59
];
60
61
- const { runCLI } = await import('@rstest/core');
+ type RunCLI = (options: { argv: string[] }) => void;
62
+ const rstestCore = (await import('@rstest/core')) as unknown as {
63
+ runCLI?: RunCLI;
64
+ };
65
+ const runCLI =
66
+ rstestCore.runCLI ??
67
+ ((await import('@rstest/core/api')) as unknown as { runCLI: RunCLI })
68
+ .runCLI;
69
runCLI({ argv });
70
}
71
0 commit comments