fix(framework): migration scripts regexp (#11072)

FIXES FRMW-2879

**What**
The exclusion regexp was broken and instead use the ignore options of the glob sync function to properly ignore definition files
This commit is contained in:
Adrien de Peretti
2025-01-21 09:34:57 +00:00
committed by GitHub
parent d4e042e9ad
commit 13fe2f6776
7 changed files with 45 additions and 11 deletions
@@ -62,7 +62,7 @@ async function getEntitiesForModule(path: string) {
const entities = [] as any[]
const entityPaths = glob.sync(join(path, "models", "*.ts"), {
ignore: ["**/index.{js,ts}"],
ignore: ["**/index.{js,ts}", "**/*.d.ts"],
})
for (const entityPath of entityPaths) {