Skip to main content

Function: findMigrationsDirectory()

findMigrationsDirectory(): string | undefined

Defined in: Data/Migration/loadMigrations.ts:66

Locate the migrations directory relative to this module.

Works from src/ (tests, ts-node) and from dist/ provided the build copies src/sql to dist/sql. Returns undefined if neither exists, so a caller can fall back rather than crash at startup.

Returns

string | undefined