Skip to content
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

Making migrationFileExtension: accept several extensions at the same time (.ts and .js) #457

Open
Alounv opened this issue Jan 22, 2025 · 0 comments

Comments

@Alounv
Copy link

Alounv commented Jan 22, 2025

Is your feature request related to a problem? Please describe.

We have been using migrate-mongo from several years and it works fine. To this day our migration files were in .js.
I'd like to switch to .ts. The thing is, I cannot have both .js and .ts at the same time (from what I tried).

Describe the solution you'd like

Ideally, I'd like to be able to have a mix of .js and .ts migration files.
Maybe by specifying something in this option migrationFileExtension: ...

Describe alternatives you've considered

I could in theory switch all the files extensions to .ts even for past migrations, but then I would need to change the changelog fileName for past migration, and I'm pretty uncomfortable with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant