This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-01 22:46:04 +00:00

13 lines
408 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cosmiconfig_1 = require("cosmiconfig");
function getConf(dir) {
const explorer = cosmiconfig_1.cosmiconfigSync('husky');
const { config = {} } = explorer.search(dir) || {};
const defaults = {
skipCI: true,
};
return Object.assign(Object.assign({}, defaults), config);
}
exports.getConf = getConf;