Skip to content

Commit

Permalink
Merge pull request #116 from storyblok/bugfix/95-run-migration-is-bro…
Browse files Browse the repository at this point in the history
…ken-after-esm-migration

fix: use `.mjs` instead
  • Loading branch information
alvarosabu authored Sep 17, 2024
2 parents 5f3f2b1 + 374d2d7 commit ad5a50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/migrations/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const getPathToFile = (fileName, migrationPath = null) => {
* getNameOfMigrationFile('product', 'price') // change_product_price
*/
export const getNameOfMigrationFile = (component, field) => {
return `change_${component}_${field}.js`
return `change_${component}_${field}.mjs`
}

/**
Expand Down

0 comments on commit ad5a50b

Please sign in to comment.