File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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');
44const readPkg = require ( 'read-pkg' ) ;
55
66const pkgDir = resolvePkg ( '@commitlint/cli' , { cwd : __dirname } ) ;
7- const manifest = readPkg . sync ( path . join ( pkgDir , 'package.json' ) ) ;
7+ const manifest = readPkg . sync ( { cwd : pkgDir } ) ;
88const bin = path . join ( pkgDir , manifest . bin . commitlint ) ;
99
1010require ( bin ) ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function main(cli) {
4343 const skipImport =
4444 typeof cli . flags . skipImport === 'boolean' ? cli . flags . skipImport : false ;
4545
46- return readPkg ( cwd ) . then ( pkg => {
46+ return readPkg ( { cwd} ) . then ( pkg => {
4747 return getTarballFiles ( cwd , { write : ! skipImport } ) . then ( tarball => {
4848 return getPackageFiles ( cwd ) . then ( pkgFiles => {
4949 let problems = [ ] ;
You can’t perform that action at this time.
0 commit comments