Skip to content

Commit d5f2c09

Browse files
authored
Merge pull request #8 from GeeWee/master
Updated ts-node dependency and README
2 parents 021a4a4 + 43dd8a8 commit d5f2c09

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ jspm_packages
3535

3636
# Optional REPL history
3737
.node_repl_history
38+
39+
.idea
40+
yarn.lock

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
# plugin-typescript
1+
# Plugin-Typescript
22
A TypeScript plugin for db-migrate.
3+
4+
Usage is very simple. Simply install this plugin via `npm install db-migrate-plugin-typescript`
5+
or if using yarn: `yarn add db-migrate-plugin-typescript`
6+
7+
The plugin will automatically resolve and compile any `.ts` files in your migrations directory,
8+
using your regular `tsconfig.json`
9+
10+
Do however note that this has no effect on generating new migrations.
11+
Using `db-migrate create FooMigrations.ts` will not create a TypeScript migration file.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A db-migrate plugin to enable TypeScript style migrations.",
55
"main": "index.js",
66
"dependencies": {
7-
"ts-node": "^3.0.2"
7+
"ts-node": "^3.3.0"
88
},
99
"devDependencies": {},
1010
"scripts": {

0 commit comments

Comments
 (0)