()
| 13 | import { findPackages, rootDir } from "./root.js"; |
| 14 | |
| 15 | function 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 | |
| 30 | async function extractTranslations() { |
| 31 | const defaultTranslationsFile = translationsPath(defaultLocale); |
no test coverage detected