Make file extensions on Canonical resources runtime-agnostic
This commit is contained in:
@@ -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() ) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user