Skip to content

Commit d893598

Browse files
committed
fix: pass argv to Rslib CLI
1 parent 8b63747 commit d893598

3 files changed

Lines changed: 15 additions & 18 deletions

File tree

packages/rstack/src/cli/commands.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,8 @@ async function runRslibCLI(args: string[]): Promise<void> {
6262
argv.push('-c', join(import.meta.dirname, 'rslibConfig.js'));
6363
}
6464

65-
// TODO
66-
process.argv = argv;
67-
6865
const { runCLI } = await import('@rslib/core');
69-
runCLI();
66+
runCLI({ argv });
7067
}
7168

7269
async function runRslintCLI(): Promise<void> {

pnpm-lock.yaml

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ catalog:
1414
'@playwright/test': '^1.60.0'
1515
'@rsbuild/core': '^2.1.4'
1616
'@rsbuild/plugin-react': '^2.1.0'
17-
'@rslib/core': '^0.23.1'
17+
'@rslib/core': '^0.23.2'
1818
'@rslint/core': '^0.6.3'
1919
'@rstest/adapter-rsbuild': 'https://pkg.pr.new/@rstest/adapter-rsbuild@880348c'
2020
'@rstest/adapter-rslib': 'https://pkg.pr.new/@rstest/adapter-rslib@880348c'

0 commit comments

Comments
 (0)