We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 098d6a3 commit 3d64087Copy full SHA for 3d64087
1 file changed
src/cli/commands.ts
@@ -22,7 +22,7 @@ Options:
22
-v, --version Display version number`;
23
24
async function runRsbuildCLI(args: string[]): Promise<void> {
25
- process.argv = [
+ const argv = [
26
process.execPath,
27
'rsbuild',
28
...args,
@@ -31,7 +31,7 @@ async function runRsbuildCLI(args: string[]): Promise<void> {
31
];
32
33
const { runCLI } = await import('@rsbuild/core');
34
- runCLI();
+ runCLI({ argv });
35
}
36
37
async function runRstestCLI(args: string[]): Promise<void> {
0 commit comments