UNPKG

godspeed-crud-api-generator

Version:

godspeed CRUD api generator will generate events and workflows based on datasource schema model

15 lines 756 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.generateWriteLocationForMethod = void 0; const path_1 = __importDefault(require("path")); const generateWriteLocationForMethod = (outputPath, subPath, dsName, modelName, method) => { let fileName = method ? path_1.default.join(modelName.toLowerCase(), `${method}.yaml`) : `${modelName.toLowerCase()}.yaml`; return path_1.default.join(outputPath, subPath, dsName, fileName); }; exports.generateWriteLocationForMethod = generateWriteLocationForMethod; //# sourceMappingURL=generateWriteLocationForMethod.js.map