New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated JS migrations in modern ESM format #10801
Labels
Comments
7 tasks
w3nl
added a commit
to w3nl/typeorm
that referenced
this issue
Mar 28, 2024
Including jsdoc for typehinting Add esm as an option in the migrate cli Update the documentation for the JS migrations Closes: typeorm#10801
w3nl
added a commit
to w3nl/typeorm
that referenced
this issue
Mar 28, 2024
Including jsdoc for typehinting Add esm as an option in the migrate cli Update the documentation for the JS migrations Closes: typeorm#10801
w3nl
added a commit
to w3nl/typeorm
that referenced
this issue
Mar 28, 2024
Including jsdoc for typehinting Add esm as an option in the migrate cli Update the documentation for the JS migrations Closes: typeorm#10801
@pleerock / @NoNameProvided / @AlexMesser / @imnotjames Could you check this? |
I am not a maintainer of TypeORM, I never was. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
Generated JS migrations in modern ESM format
See also: https://nodejs.org/api/esm.html
Expected Behavior
Generate ESM JS migrations, with import/export
So the migration works in a ESM codebase.
Actual Behavior
Generate CommonJS JS migrations
So migrations dont work now in a ESM codebase.
Steps to reproduce
Add
"type": "module",
to your package.jsonGenerate migrations with cli with the -o
My Environment
Additional Context
No response
Relevant Database Driver(s)
Are you willing to resolve this issue by submitting a Pull Request?
Yes, I have the time, and I know how to start.
@pleerock PR is created: #10802
The text was updated successfully, but these errors were encountered: