From e38caeac92babd3e77bb1a7f6ed5f20f7d6b38b1 Mon Sep 17 00:00:00 2001 From: Maggy Hofstetter <119439839+Rignchen@users.noreply.github.com> Date: Sun, 19 Jul 2026 02:00:53 +0200 Subject: [PATCH] fix: import using full path instead of relative path import `/${this.migrationsDir}/${fileName}` instead of `/node_modules/.pnpm/sqlite-up@0.6.0/node_modules/sqlite-up/dist/${this.migrationsDir}/${fileName}` (or it's equivalent with other package manager) (`/` represents the project's root directory) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 263dace..4b3c861 100644 --- a/src/index.ts +++ b/src/index.ts @@ -144,7 +144,7 @@ export class Migrator extends EventEmitter { const loadedMigrations: Migration[] = []; for (const file of migrationFiles) { - const fullPath = path.join(this.migrationsDir, file); + const fullPath = await fs.realpath(path.join(this.migrationsDir, file)); let imported: { up: Migration['up'];