UNPKG

husky-v4

Version:

The original Husky, but immutable at v4.3.8

14 lines (13 loc) 434 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getConf = void 0; 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;