"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMigrationsDir = getMigrationsDir;
exports.getSourceMigrationsDir = getSourceMigrationsDir;
const node_fs_1 = require("node:fs");
function getMigrationsDir() {
    if (__filename.endsWith('.ts') && process.env.DKSF_FORCE_DIST_MIGRATIONS !== 'true')
        return 'src/migrations';
    if ((0, node_fs_1.existsSync)('dist/src/migrations'))
        return 'dist/src/migrations';
    return 'dist/migrations';
}
getMigrationsDir.__type = ['getMigrationsDir', 'P"/!'];
function getSourceMigrationsDir() {
    return 'src/migrations';
}
getSourceMigrationsDir.__type = ['getSourceMigrationsDir', 'P"/!'];
//# sourceMappingURL=helpers.js.map