File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,8 @@ module.exports = {
66
77 'migrator:migration:hook:require' : function ( ) {
88
9- /**
10- * Always delay requires, otherwise your plugin will cause trouble
11- * with db-migrates performance and generates issues to your users.
12- */
13- require ( 'typescript' ) . register ( ) ;
9+ // We use ts-node because the official typescript module does not implement the register() method
10+ require ( 'ts-node' ) . register ( ) ;
1411
1512 /**
1613 * Return value of this hook can be both, pure value or a promise.
Original file line number Diff line number Diff line change 11{
22 "name" : " db-migrate-plugin-typescript" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " A db-migrate plugin to enable Typescript style migrations." ,
55 "main" : " index.js" ,
66 "dependencies" : {
7- "typescript " : " ^1.8.10 "
7+ "ts-node " : " ^1.3.0 "
88 },
99 "devDependencies" : {},
1010 "scripts" : {
You can’t perform that action at this time.
0 commit comments