Fixed getMigration filetype for built versions #366
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description:
Subject: [PATCH] Fixed getMigrations filetype for built versions
Summary:
This patch addresses an issue with the
getMigrations
function insrc/migrator.ts
where it was only filtering.ts
files for migrations. The fix now allows the function to correctly handle both.ts
and.js
files, ensuring compatibility with built versions of the application that use JavaScript files instead of TypeScript.Changes:
getMigrations
method to filter both.ts
and.js
files in the migrations folder.Impact:
This change ensures that migrations can be correctly loaded regardless of whether the application is running in development mode (using TypeScript) or in production (using JavaScript after the build).
Related Issues:
Testing:
.ts
and.js
migration files are correctly detected and processed when the application is built and deployed.Additional Notes: