-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathindex.js
More file actions
27 lines (21 loc) · 598 Bytes
/
index.js
File metadata and controls
27 lines (21 loc) · 598 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = {
loadPlugin: function() {
module.exports = Object.assign(module.exports, {
'migrator:migration:hook:require': function() {
// We use ts-node because the official TypeScript module does not implement the register() method
require('ts-node/register');
/**
* Return value of this hook can be either a pure value or a Promise.
*/
return {
extensions: 'ts'
};
}
});
delete module.exports.loadPlugin;
},
name: 'typescript',
hooks: [
'migrator:migration:hook:require'
]
};