1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const cosmiconfig_1 = require("cosmiconfig");
|
4 | function getConf(dir) {
|
5 | const explorer = cosmiconfig_1.cosmiconfigSync('husky');
|
6 | const { config = {} } = explorer.search(dir) || {};
|
7 | const defaults = {
|
8 | skipCI: true
|
9 | };
|
10 | return Object.assign(Object.assign({}, defaults), config);
|
11 | }
|
12 | exports.getConf = getConf;
|