@polka-codes/cli-shared 0.7.20 → 0.7.21
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 +8 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -30522,7 +30522,7 @@ var toolInfo9 = {
|
|
|
30522
30522
|
},
|
|
30523
30523
|
{
|
|
30524
30524
|
name: "file_pattern",
|
|
30525
|
-
description: '
|
|
30525
|
+
description: 'Comma-separated glob pattern to filter files (e.g., "*.ts" for TypeScript files or "*.ts,*.js" for both TypeScript and JavaScript files). If not provided, it will search all files (*).',
|
|
30526
30526
|
required: false,
|
|
30527
30527
|
usageValue: "file pattern here (optional)"
|
|
30528
30528
|
}
|
|
@@ -30541,7 +30541,7 @@ var toolInfo9 = {
|
|
|
30541
30541
|
},
|
|
30542
30542
|
{
|
|
30543
30543
|
name: "file_pattern",
|
|
30544
|
-
value: "*.ts"
|
|
30544
|
+
value: "*.ts,*.tsx"
|
|
30545
30545
|
}
|
|
30546
30546
|
]
|
|
30547
30547
|
}
|
|
@@ -41341,7 +41341,12 @@ async function searchFiles(path2, regex, filePattern, cwd, excludeFiles) {
|
|
|
41341
41341
|
"--smart-case"
|
|
41342
41342
|
];
|
|
41343
41343
|
if (filePattern && filePattern !== "*") {
|
|
41344
|
-
|
|
41344
|
+
const patterns = filePattern.split(",").map((p2) => p2.trim()).filter(Boolean);
|
|
41345
|
+
for (const pattern of patterns) {
|
|
41346
|
+
if (pattern) {
|
|
41347
|
+
args2.push("--glob", pattern);
|
|
41348
|
+
}
|
|
41349
|
+
}
|
|
41345
41350
|
}
|
|
41346
41351
|
if (excludeFiles) {
|
|
41347
41352
|
for (const pattern of excludeFiles) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polka-codes/cli-shared",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.21",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"author": "github@polka.codes",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "bun build src/index.ts --outdir dist --target node"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@polka-codes/core": "0.7.
|
|
18
|
+
"@polka-codes/core": "0.7.20",
|
|
19
19
|
"@vscode/ripgrep": "^1.15.10",
|
|
20
20
|
"ignore": "^7.0.3",
|
|
21
21
|
"lodash": "^4.17.21",
|