()
| 59 | : [] |
| 60 | |
| 61 | const defaultFiles = (): string[] => { |
| 62 | const tracked = execFileSync("git", ["ls-files", "-z"], { |
| 63 | cwd: repoRoot, |
| 64 | encoding: "utf8", |
| 65 | maxBuffer: 64 * 1024 * 1024 |
| 66 | }) |
| 67 | .split("\0") |
| 68 | .filter( |
| 69 | path => |
| 70 | path && |
| 71 | extensions.includes(extname(path)) && |
| 72 | !path.split("/").includes("node_modules") |
| 73 | ) |
| 74 | .map(path => join(repoRoot, path)) |
| 75 | const extra = [...listDir(corpusDir), ...listDir(samplesDir)] |
| 76 | return [...new Set([...tracked, ...extra])].filter( |
| 77 | path => |
| 78 | existsSync(path) && |
| 79 | extensions.includes(extname(path)) && |
| 80 | statSync(path).size <= maxFileSize |
| 81 | ) |
| 82 | } |
| 83 | |
| 84 | const args = process.argv.slice(2) |
| 85 | let variants = [true, false] |
no test coverage detected