diff --git a/examples/2-es-modules/umzug.mjs b/examples/2-es-modules/umzug.mjs index 24ae8af3..23ec4f65 100644 --- a/examples/2-es-modules/umzug.mjs +++ b/examples/2-es-modules/umzug.mjs @@ -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({