Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 021a4a4

Browse files
authored
Merge pull request #5 from westy92/master
Update ts-node version.
2 parents adb23c1 + e840536 commit 021a4a4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# plugin-typescript
2-
A typescript plugin for db-migrate.
2+
A TypeScript plugin for db-migrate.

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ module.exports = {
66

77
'migrator:migration:hook:require': function() {
88

9-
// We use ts-node because the official typescript module does not implement the register() method
10-
require('ts-node').register();
9+
// We use ts-node because the official TypeScript module does not implement the register() method
10+
require('ts-node/register');
1111

1212
/**
13-
* Return value of this hook can be both, pure value or a promise.
13+
* Return value of this hook can be either a pure value or a Promise.
1414
*/
1515
return {
1616
extensions: 'ts'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "db-migrate-plugin-typescript",
33
"version": "1.0.1",
4-
"description": "A db-migrate plugin to enable Typescript style migrations.",
4+
"description": "A db-migrate plugin to enable TypeScript style migrations.",
55
"main": "index.js",
66
"dependencies": {
7-
"ts-node": "^1.3.0"
7+
"ts-node": "^3.0.2"
88
},
99
"devDependencies": {},
1010
"scripts": {

0 commit comments

Comments
 (0)