We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a28fece commit c90d122Copy full SHA for c90d122
src/utils.js
@@ -3,10 +3,12 @@ const path = require('path');
3
const readPkgUp = require('read-pkg-up');
4
5
const {
6
- path: projectDirectory,
+ path: projectPackageJsonPath,
7
packageJson: projectPackageJson
8
} = readPkgUp.sync();
9
10
+const projectDirectory = path.dirname(projectPackageJsonPath);
11
+
12
const binPath = name => path.join(__dirname, '../node_modules/.bin', name);
13
14
const projectHasFile = filename =>
0 commit comments