Skip to content

Commit

Permalink
fix(commitlint): use new read pkg syntax (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jan 3, 2020
1 parent 5fd8a69 commit 6b3b9a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @alias/commitlint/cli.js
Expand Up @@ -4,7 +4,7 @@ const resolvePkg = require('resolve-pkg');
const readPkg = require('read-pkg');

const pkgDir = resolvePkg('@commitlint/cli', {cwd: __dirname});
const manifest = readPkg.sync(path.join(pkgDir, 'package.json'));
const manifest = readPkg.sync({cwd: pkgDir});
const bin = path.join(pkgDir, manifest.bin.commitlint);

require(bin);
2 changes: 1 addition & 1 deletion @packages/utils/pkg-check.js
Expand Up @@ -43,7 +43,7 @@ function main(cli) {
const skipImport =
typeof cli.flags.skipImport === 'boolean' ? cli.flags.skipImport : false;

return readPkg(cwd).then(pkg => {
return readPkg({cwd}).then(pkg => {
return getTarballFiles(cwd, {write: !skipImport}).then(tarball => {
return getPackageFiles(cwd).then(pkgFiles => {
let problems = [];
Expand Down

0 comments on commit 6b3b9a9

Please sign in to comment.