Fix buildMigrationNamespaceResolver to use isValidSuffix(...) instead of hard-coded check

master
Garrett Mills 2 years ago
parent 7d3fde85eb
commit 6ca4bc1151

@ -1,6 +1,6 @@
{
"name": "@extollo/lib",
"version": "0.10.3",
"version": "0.10.4",
"description": "The framework library that lifts up your code.",
"main": "lib/index.js",
"types": "lib/index.d.ts",

@ -67,7 +67,7 @@ export class Migrations extends CanonicalInstantiable<Migration> {
const namespace: {[key: string]: Migration} = {}
for await ( const entry of basePath.walk() ) {
if ( !entry.endsWith(this.suffix) ) {
if ( !this.isValidSuffix(entry) ) {
this.logging.debug(`buildMigrationNamespaceResolver - Skipping file with invalid suffix: ${entry}`)
continue
}

Loading…
Cancel
Save