UNPKG

jido

Version:

A CLI tool to automate your development workflows using named flows. Simplifies task automation with readable config and plugin support.

13 lines (12 loc) 373 B
import path from "path"; import { pathToFileURL } from "url"; export async function loadConfig() { const configPath = path.resolve(process.cwd(), "jido.config.js"); try { const config = await import(pathToFileURL(configPath).href); return config.default; } catch (e) { throw new Error(`Failed to load jido.config.js: ${e}`); } }