UNPKG

cca-migrations

Version:

A powerful PostgreSQL migration tool with support for TypeORM and NestJS

15 lines (12 loc) 393 B
import { findConfigFileRecursive } from "./findConfigFileRecursively.js"; export const findConfigFile = () => { const startPath = process.cwd(); let configPath = findConfigFileRecursive(startPath); if (!configPath) { console.error( `Could not find caa.config.json in any parent directory of ${startPath}` ); process.exit(1); } return configPath; };