"use strict";
/** @format */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getYamlPath = exports.i18n = exports.logger = exports.registerAction = exports.urlParser = exports.storage = exports.configSet = exports.common = void 0;
var path_1 = __importDefault(require("path"));
var core_1 = __importDefault(require("./core"));
var fs = core_1.default.fse;
var common_1 = require("./common");
Object.defineProperty(exports, "common", { enumerable: true, get: function () { return __importDefault(common_1).default; } });
var handler_set_config_1 = require("./handler-set-config");
Object.defineProperty(exports, "configSet", { enumerable: true, get: function () { return __importDefault(handler_set_config_1).default; } });
var storage_1 = require("./storage");
Object.defineProperty(exports, "storage", { enumerable: true, get: function () { return __importDefault(storage_1).default; } });
var url_parser_1 = require("./url-parser");
Object.defineProperty(exports, "urlParser", { enumerable: true, get: function () { return __importDefault(url_parser_1).default; } });
var command_util_1 = require("./command-util");
Object.defineProperty(exports, "registerAction", { enumerable: true, get: function () { return __importDefault(command_util_1).default; } });
var logger_1 = require("./logger");
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return __importDefault(logger_1).default; } });
var i18n_1 = require("./i18n");
Object.defineProperty(exports, "i18n", { enumerable: true, get: function () { return __importDefault(i18n_1).default; } });
var getYamlPath = function (prePath, name) {
    var S_PATH1 = path_1.default.join(prePath, name + ".yaml");
    var S_PATH2 = path_1.default.join(prePath, name + ".yml");
    var S_PATH = fs.existsSync(S_PATH1) ? S_PATH1 : fs.existsSync(S_PATH2) ? S_PATH2 : undefined;
    return S_PATH;
};
exports.getYamlPath = getYamlPath;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLGNBQWM7Ozs7OztBQUVkLDhDQUF3QjtBQUN4QixnRE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