UNPKG

backport

Version:

A CLI tool that automates the process of backporting commits

20 lines 825 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getProjectConfig = void 0; const path_1 = __importDefault(require("path")); const find_up_1 = __importDefault(require("find-up")); const readConfigFile_1 = require("../config/readConfigFile"); async function getProjectConfig(projectConfigFile, cwd) { const filepath = projectConfigFile ? path_1.default.resolve(projectConfigFile) : await (0, find_up_1.default)('.backportrc.json', { cwd }); if (!filepath) { return; } return (0, readConfigFile_1.readConfigFile)(filepath); } exports.getProjectConfig = getProjectConfig; //# sourceMappingURL=projectConfig.js.map