File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,8 @@ module.exports = {
6
6
7
7
'migrator:migration:hook:require' : function ( ) {
8
8
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 ( ) ;
14
11
15
12
/**
16
13
* Return value of this hook can be both, pure value or a promise.
Original file line number Diff line number Diff line change 4
4
"description" : " A db-migrate plugin to enable Typescript style migrations." ,
5
5
"main" : " index.js" ,
6
6
"dependencies" : {
7
- "typescript " : " ^1.8.10 "
7
+ "ts-node " : " ^1.3.0 "
8
8
},
9
9
"devDependencies" : {},
10
10
"scripts" : {
You can’t perform that action at this time.
0 commit comments