Skip to content

Commit

Permalink
docs: fix typeorm alias for TS (#6045)
Browse files Browse the repository at this point in the history
Just did not work with actual version of ts-node and others modules
  • Loading branch information
JSteunou committed May 15, 2020
1 parent 61d59ca commit 826ed36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/using-cli.md
Expand Up @@ -37,10 +37,12 @@ Add typeorm command under scripts section in package.json
```
"scripts" {
...
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js"
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js"
}
```

If you want to load more modules like [module-alias](https://github.com/ilearnio/module-alias) you can add more `--require my-module-supporting-register`

Then you may run the command like this:
```
npm run typeorm migration:run
Expand Down

0 comments on commit 826ed36

Please sign in to comment.