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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user