UNPKG

actionhero

Version:

The reusable, scalable, and quick node.js API server for stateless and stateful applications

10 lines (8 loc) 300 B
import { config } from "../config"; /** * Used by generator functions running from your `dist`, it replaces the path with your `src` * Relies on api.config.general.paths */ export function replaceDistWithSrc(f: string) { return f.replace(config.general.paths.dist, config.general.paths.src); }