We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f029ea2 commit 9e8426dCopy full SHA for 9e8426d
src/core/migrator.ts
@@ -1,5 +1,6 @@
1
import { DocumentClient } from 'aws-sdk/clients/dynamodb';
2
import nodePlop from 'node-plop/lib/node-plop';
3
+import path from 'path';
4
import Umzug from 'umzug';
5
6
import logger from '../helpers/logger';
@@ -38,7 +39,7 @@ export class Migrator {
38
39
logging: logger.log
40
});
41
- const plop = nodePlop('.plop/plopfile.js');
42
+ const plop = nodePlop(path.join(__dirname, '../.plop/plopfile.js'));
43
this.generator = plop.getGenerator('migration');
44
}
45
0 commit comments