Fix buildMigrationNamespaceResolver to use isValidSuffix(...) instead of hard-coded check
This commit is contained in:
parent
7d3fde85eb
commit
6ca4bc1151
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@extollo/lib",
|
"name": "@extollo/lib",
|
||||||
"version": "0.10.3",
|
"version": "0.10.4",
|
||||||
"description": "The framework library that lifts up your code.",
|
"description": "The framework library that lifts up your code.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
@ -67,7 +67,7 @@ export class Migrations extends CanonicalInstantiable<Migration> {
|
|||||||
const namespace: {[key: string]: Migration} = {}
|
const namespace: {[key: string]: Migration} = {}
|
||||||
|
|
||||||
for await ( const entry of basePath.walk() ) {
|
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}`)
|
this.logging.debug(`buildMigrationNamespaceResolver - Skipping file with invalid suffix: ${entry}`)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user