Skip to content

Commit

Permalink
Alternative for transpiling (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Rebonato authored and dolezel committed Nov 29, 2019
1 parent 9e1b82b commit 290dd2a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/transpiling.md
Expand Up @@ -21,3 +21,10 @@ It requires a little setup to use:

Uncomment/Use either babel or typescript hook and adjust your config for compiler.
You can then use migration as usual via e.g. `npm run migrate up`. :tada:

Another option is to use [ts-node](https://www.npmjs.com/package/ts-node) CLI directly and it needs to be available globally or as a dependency.
If migrations are in the `/src/migrations` folder then the path can still be referenced with the `-m` CLI option.

```
"migrate": "ts-node node_modules/.bin/node-pg-migrate -m src/migrations -j ts",
```

0 comments on commit 290dd2a

Please sign in to comment.