diff --git a/src/loadLibrary.ts b/src/loadLibrary.ts index 399d030d..dc8851b9 100644 --- a/src/loadLibrary.ts +++ b/src/loadLibrary.ts @@ -27,7 +27,11 @@ export const tryLoadDynamicLibrary = ( if (path) { try { const resolvePath = require.resolve(name, { - paths: [path, resolve(path, '@commitlint', 'cli')], + paths: [ + path, + resolve(path, '@commitlint', 'cli'), + resolve(path, 'commitlint'), + ], }); log(`loading ${name} dynamically via ${resolvePath}`);