File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const resolvePkg = require('resolve-pkg');
4
4
const readPkg = require ( 'read-pkg' ) ;
5
5
6
6
const pkgDir = resolvePkg ( '@commitlint/cli' , { cwd : __dirname } ) ;
7
- const manifest = readPkg . sync ( path . join ( pkgDir , 'package.json' ) ) ;
7
+ const manifest = readPkg . sync ( { cwd : pkgDir } ) ;
8
8
const bin = path . join ( pkgDir , manifest . bin . commitlint ) ;
9
9
10
10
require ( bin ) ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function main(cli) {
43
43
const skipImport =
44
44
typeof cli . flags . skipImport === 'boolean' ? cli . flags . skipImport : false ;
45
45
46
- return readPkg ( cwd ) . then ( pkg => {
46
+ return readPkg ( { cwd} ) . then ( pkg => {
47
47
return getTarballFiles ( cwd , { write : ! skipImport } ) . then ( tarball => {
48
48
return getPackageFiles ( cwd ) . then ( pkgFiles => {
49
49
let problems = [ ] ;
You can’t perform that action at this time.
0 commit comments