From a5198db214036da9937e319763f661b78f0c747e Mon Sep 17 00:00:00 2001 From: Misha Kaletsky Date: Tue, 27 Aug 2024 10:22:24 -0400 Subject: [PATCH] use a regex --- examples/2-es-modules/umzug.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({