From 1cd623600960f8a26afc48d856f33e3c34291053 Mon Sep 17 00:00:00 2001 From: dcs-soni <52232900+dcs-soni@users.noreply.github.com> Date: Sun, 9 Nov 2025 22:38:10 +0530 Subject: [PATCH] fix: use TypeScript export = for Commonjs compatibility --- apps/backend/src/db/knexfile.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/db/knexfile.ts b/apps/backend/src/db/knexfile.ts index e0d0a6e..87684df 100644 --- a/apps/backend/src/db/knexfile.ts +++ b/apps/backend/src/db/knexfile.ts @@ -71,6 +71,9 @@ const config: { [key: string]: Knex.Config } = { migrations: { directory: "./migrations", extension: "js", + loadExtensions: [".js"], + disableMigrationsListValidation: true, + schemaName: "public", }, seeds: { directory: "./seeds", @@ -82,4 +85,6 @@ const config: { [key: string]: Knex.Config } = { }, }; -export default config; +// Use export = for CommonJS compatibility with Knex +// This compiles to module.exports = config +export = config;