@@ -11,6 +11,7 @@ Runs lint-staged with tasks from define.staged in rstack.config.
1111Options:
1212 --allow-empty Allow empty commits when tasks revert all staged changes
1313 -p, --concurrent <number|boolean> The number of tasks to run concurrently, or false for serial
14+ --cwd <path> Working directory to run all tasks in
1415 --no-stash Disable the backup stash. Implies "--no-revert".
1516 -q, --quiet Disable lint-staged's own console output
1617 -r, --relative Pass relative filepaths to tasks
@@ -24,6 +25,7 @@ export async function runStagedCLI(args: string[]): Promise<void> {
2425 'allow-empty' : { type : 'boolean' } ,
2526 allowEmpty : { type : 'boolean' } ,
2627 concurrent : { type : 'string' , short : 'p' } ,
28+ cwd : { type : 'string' } ,
2729 help : { type : 'boolean' , short : 'h' } ,
2830 'no-stash' : { type : 'boolean' } ,
2931 quiet : { type : 'boolean' , short : 'q' } ,
@@ -55,6 +57,7 @@ export async function runStagedCLI(args: string[]): Promise<void> {
5557 allowEmpty : values [ 'allow-empty' ] ?? values . allowEmpty ?? false ,
5658 concurrent : values . concurrent === undefined ? true : JSON . parse ( values . concurrent ) ,
5759 config : stagedConfig ,
60+ cwd : values . cwd ,
5861 quiet : values . quiet ?? false ,
5962 relative : values . relative ?? false ,
6063 stash : ! values [ 'no-stash' ] ,
0 commit comments