@polka-codes/cli 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24629,7 +24629,7 @@ var {
|
|
|
24629
24629
|
Help
|
|
24630
24630
|
} = import__.default;
|
|
24631
24631
|
// package.json
|
|
24632
|
-
var version = "0.7.
|
|
24632
|
+
var version = "0.7.7";
|
|
24633
24633
|
|
|
24634
24634
|
// ../../node_modules/@anthropic-ai/sdk/version.mjs
|
|
24635
24635
|
var VERSION = "0.39.0";
|
|
@@ -37463,7 +37463,7 @@ async function searchFiles(path2, regex, filePattern, cwd, excludeFiles) {
|
|
|
37463
37463
|
}
|
|
37464
37464
|
if (excludeFiles) {
|
|
37465
37465
|
for (const pattern of excludeFiles) {
|
|
37466
|
-
args2.push("--
|
|
37466
|
+
args2.push("--glob", `!${pattern}`);
|
|
37467
37467
|
}
|
|
37468
37468
|
}
|
|
37469
37469
|
args2.push(regex, path2);
|
|
@@ -37478,12 +37478,6 @@ async function searchFiles(path2, regex, filePattern, cwd, excludeFiles) {
|
|
|
37478
37478
|
`).filter(Boolean);
|
|
37479
37479
|
results.push(...lines2);
|
|
37480
37480
|
});
|
|
37481
|
-
rg.stderr.on("data", (data) => {
|
|
37482
|
-
const err2 = data.toString();
|
|
37483
|
-
if (!err2.startsWith("WARNING:")) {
|
|
37484
|
-
console.warn(err2);
|
|
37485
|
-
}
|
|
37486
|
-
});
|
|
37487
37481
|
rg.on("error", (error) => {
|
|
37488
37482
|
reject(new Error(`Failed to execute ripgrep: ${error.message}`));
|
|
37489
37483
|
});
|