@opencode/util 0.0.0-dev-21132 → 0.0.0-dev-21133
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/fs-util.d.ts +2 -0
- package/dist/fs-util.js +2 -0
- package/dist/glob.d.ts +1 -0
- package/dist/glob.js +1 -0
- package/package.json +1 -1
package/dist/fs-util.d.ts
CHANGED
|
@@ -133,6 +133,8 @@ export declare namespace FSUtil {
|
|
|
133
133
|
export function normalizePathPattern(p: string): string;
|
|
134
134
|
export function resolve(p: string): string;
|
|
135
135
|
export function windowsPath(p: string): string;
|
|
136
|
+
export const ignoredDirectories: string[];
|
|
137
|
+
export const ignoreGlobs: string[];
|
|
136
138
|
export function overlaps(a: string, b: string): boolean;
|
|
137
139
|
export function contains(parent: string, child: string): boolean;
|
|
138
140
|
export {};
|
package/dist/fs-util.js
CHANGED
|
@@ -205,6 +205,8 @@ export var FSUtil;
|
|
|
205
205
|
.replace(/^\/mnt\/([a-zA-Z])(?:\/|$)/, (_, drive) => `${drive.toUpperCase()}:/`);
|
|
206
206
|
}
|
|
207
207
|
FSUtil.windowsPath = windowsPath;
|
|
208
|
+
FSUtil.ignoredDirectories = ["node_modules", ".git", ".venv", "venv", "__pycache__"];
|
|
209
|
+
FSUtil.ignoreGlobs = [...FSUtil.ignoredDirectories, `**/{${FSUtil.ignoredDirectories.join(",")}}/**`];
|
|
208
210
|
function overlaps(a, b) {
|
|
209
211
|
return contains(a, b) || contains(b, a);
|
|
210
212
|
}
|
package/dist/glob.d.ts
CHANGED
package/dist/glob.js
CHANGED