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

Skip to content

Commit 0b02028

Browse files
authored
Add usage to README.
1 parent 021a4a4 commit 0b02028

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# plugin-typescript
22
A TypeScript plugin for db-migrate.
3+
4+
## Usage
5+
To use this plugin you need to use the latest `db-migrate` version (the one on the beta tree) and you need to have this plugin installed in your project (there must be an entry in your `package.json`). `db-migrate` will pick up on the plugin automatically if the entry in the `package.json` is found.
6+
7+
The plugin then hooks into functionality of `db-migrate` itself. In this case it hooks into `migrator:migration:hook:require`, which in this case requires another transpiler (TypeScript) and registers also a new file extension (.ts). Make sure to name your migrations accordingly (ending with .ts).

0 commit comments

Comments
 (0)