Skip to content

Commit 9e8426d

Browse files
committed
fix(generator): fix incorrect plopfile.js resolving
1 parent f029ea2 commit 9e8426d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/migrator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { DocumentClient } from 'aws-sdk/clients/dynamodb';
22
import nodePlop from 'node-plop/lib/node-plop';
3+
import path from 'path';
34
import Umzug from 'umzug';
45

56
import logger from '../helpers/logger';
@@ -38,7 +39,7 @@ export class Migrator {
3839
logging: logger.log
3940
});
4041

41-
const plop = nodePlop('.plop/plopfile.js');
42+
const plop = nodePlop(path.join(__dirname, '../.plop/plopfile.js'));
4243
this.generator = plop.getGenerator('migration');
4344
}
4445

0 commit comments

Comments
 (0)