Skip to content

How to run TypeOrm migrations #77

Answered by damgem
djschilling asked this question in Q&A
Discussion options

You must be logged in to vote

For documentation purposes I’ll link the answer I wrote to your issue on typeorm’s repo you created while I researched that for an intern project 🙂 typeorm/typeorm#9645 (comment)

This is only a workaround but the gist is:

  • use esbuild to compile the file that exports DataSource
  • now specify the compiled file in the -d flag

You can prefix every cli command with that and then use the CLI as used.

Has this resolved your issue? if so: please mark this as the resolution :)

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@BracketJohn
Comment options

@djschilling
Comment options

Comment options

You must be logged in to vote
8 replies
@djschilling
Comment options

@BracketJohn
Comment options

@djschilling
Comment options

@BracketJohn
Comment options

@damgem
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by BracketJohn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants