Skip to content

Commit

Permalink
use a regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Aug 27, 2024
1 parent 7b23a11 commit a5198db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/2-es-modules/umzug.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const sequelize = new Sequelize({

export const migrator = new Umzug({
migrations: {
glob: ['migrations/*.{js,cjs,mjs}', { cwd: path.dirname(import.meta.url.replace( os.platform() === 'win32' ? 'file:///' : 'file://', '')) }],
glob: ['migrations/*.{js,cjs,mjs}', { cwd: path.dirname(import.meta.url.replace(os.platform() === 'win32' ? 'file:///' : 'file://', '')) }],
},
context: { sequelize, DataTypes },
storage: new SequelizeStorage({
Expand Down

0 comments on commit a5198db

Please sign in to comment.