()
| 17 | const appDirectory = path.dirname(pkgPath) |
| 18 | |
| 19 | function resolveKcdScripts() { |
| 20 | if ( |
| 21 | pkg.name === 'kcd-scripts' || |
| 22 | // this happens on install of husky within kcd-scripts locally |
| 23 | appDirectory.includes(path.join(__dirname, '..')) |
| 24 | ) { |
| 25 | return require.resolve('./').replace(process.cwd(), '.') |
| 26 | } |
| 27 | return resolveBin('kcd-scripts') |
| 28 | } |
| 29 | |
| 30 | // eslint-disable-next-line complexity |
| 31 | function resolveBin(modName, {executable = modName, cwd = process.cwd()} = {}) { |
no test coverage detected
searching dependent graphs…