| 517 | const staticModelBlockRe = /\/\/ codegen:start[ \t]*\{[^}]*\bpreset:\s*model\b[^}]*\b(?:static|facade):\s*true\b/ |
| 518 | |
| 519 | function defaultFiles(): Array<string> { |
| 520 | return globSync("**/*.{ts,tsx,mts,cts}", { |
| 521 | cwd: process.cwd(), |
| 522 | nodir: true, |
| 523 | ignore: [ |
| 524 | "**/node_modules/**", |
| 525 | "**/dist/**", |
| 526 | "**/build/**", |
| 527 | "**/.git/**" |
| 528 | ] |
| 529 | }) |
| 530 | .map((filePath) => path.resolve(process.cwd(), filePath)) |
| 531 | } |
| 532 | |
| 533 | function findNearestTsconfig(fromDir: string): string | undefined { |
| 534 | let dir = fromDir |