actionhero
Version:
The reusable, scalable, and quick node.js API server for stateless and stateful applications
12 lines (11 loc) • 433 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.replaceDistWithSrc = replaceDistWithSrc;
const config_1 = require("../config");
/**
* Used by generator functions running from your `dist`, it replaces the path with your `src`
* Relies on api.config.general.paths
*/
function replaceDistWithSrc(f) {
return f.replace(config_1.config.general.paths.dist, config_1.config.general.paths.src);
}