Skip to content

Commit 2d6310f

Browse files
author
Danylo Kazymyrov
committed
directly specify files for ripgrep
1 parent 3909062 commit 2d6310f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ export function ripGrep(cwd: string, optionsOrSearchTerm: Options | string): Pro
6969
execString = `${execString} --multiline`;
7070
}
7171

72+
execString+=` -- ${cwd}`
73+
7274
execLog(execString);
7375

7476
return new Promise(function (resolve, reject) {
75-
exec(execString, { cwd }, (error, stdout, stderr) => {
77+
exec(execString, (error, stdout, stderr) => {
7678
if (!error || (error && stderr === '')) {
7779
resolve(formatResults(stdout));
7880
} else {

0 commit comments

Comments
 (0)