MCPcopy Create free account
hub / github.com/aradzie/keybr.com / findSourceFiles

Function findSourceFiles

scripts/translate.js:15–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13import { findPackages, rootDir } from "./root.js";
14
15function findSourceFiles() {
16 const files = [];
17 for (const packageDirectory of findPackages()) {
18 for (const file of globSync(["lib/**/*.@(ts|tsx)"], {
19 cwd: packageDirectory,
20 absolute: true,
21 ignore: ["**/*.d.ts", "**/test/*", "**/*.test.*"],
22 })) {
23 files.push(file);
24 }
25 }
26 files.sort();
27 return files;
28}
29
30async function extractTranslations() {
31 const defaultTranslationsFile = translationsPath(defaultLocale);

Callers 1

extractTranslationsFunction · 0.85

Calls 1

findPackagesFunction · 0.90

Tested by

no test coverage detected