MCPcopy Create free account
hub / github.com/firebase/firebase-tools / detectFiles

Function detectFiles

src/appUtils.ts:332–348  ·  view source on GitHub ↗
(dirPath: string, filePattern: string)

Source from the content-addressed store, hash-verified

330 * @return A promise that resolves to an array of file paths relative to `dirPath`.
331 */
332export async function detectFiles(dirPath: string, filePattern: string): Promise<string[]> {
333 const options = {
334 cwd: dirPath,
335 ignore: [
336 "**/dataconnect*/**",
337 "**/node_modules/**", // Standard dependency directory
338 "**/dist/**", // Common build output
339 "**/build/**", // Common build output
340 "**/out/**", // Another common build output
341 "**/.next/**", // Next.js build directory
342 "**/coverage/**", // Test coverage reports
343 ],
344 absolute: false,
345 maxDepth: 4,
346 };
347 return glob(`**/${filePattern}`, options);
348}

Callers 5

iosAppUsesCrashlyticsFunction · 0.90
detectAppsFunction · 0.85
detectAppIdsForPlatformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…