Skip to content

Commit c90d122

Browse files
committed
🐛 resolve issue where configuration files weren't being detected
1 parent a28fece commit c90d122

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ const path = require('path');
33
const readPkgUp = require('read-pkg-up');
44

55
const {
6-
path: projectDirectory,
6+
path: projectPackageJsonPath,
77
packageJson: projectPackageJson
88
} = readPkgUp.sync();
99

10+
const projectDirectory = path.dirname(projectPackageJsonPath);
11+
1012
const binPath = name => path.join(__dirname, '../node_modules/.bin', name);
1113

1214
const projectHasFile = filename =>

0 commit comments

Comments
 (0)