Make file extensions on Canonical resources runtime-agnostic

This commit is contained in:
2022-07-08 20:27:18 -05:00
parent cf0ae260dc
commit 2ff9354538
8 changed files with 23 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ export class Migrations extends CanonicalInstantiable<Migration> {
protected canonicalItem = 'migration'
protected suffix = '.migration.js'
protected suffix = '.migration'
async up(): Promise<void> {
if ( await this.path.exists() ) {

View File

@@ -17,7 +17,7 @@ export class Models extends CanonicalStatic<Model<any>, Instantiable<Model<any>>
protected canonicalItem = 'model'
protected suffix = '.model.js'
protected suffix = '.model'
public async up(): Promise<void> {
await super.up()