Skip to content

Commit cd5198a

Browse files
authored
Merge pull request #454 from jcppkkk/master
feat(commitlint): add additional search path for @commitlint
2 parents 7feb3ec + 44bd14d commit cd5198a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/commitlint/pwd-commitlint.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import path from 'path';
44
const findModulePath = (moduleName: string) => {
55
const searchPaths = [
66
path.join('node_modules', moduleName),
7-
path.join('node_modules', '.pnpm')
7+
path.join('node_modules', '.pnpm'),
8+
path.resolve(__dirname, '../..')
89
];
910

1011
for (const basePath of searchPaths) {

0 commit comments

Comments
 (0)