Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ariofrio authored Sep 1, 2018
1 parent f7fb64a commit acb1c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ function getTargetPackageSpecFromNpmInstallOutput (npmInstallOutput) {
function pathToInstalledPackage (spec, dest) {
const { name, rawSpec } = npa(spec, dest);
const paths = [];
for (const p = dest; path.dirname(p) !== p; p = path.dirname(p)) {
paths.push(path.join(p, 'node_modules'));
for (let p = dest; path.dirname(p) !== p; p = path.dirname(p)) {
paths.push(path.join(p, 'node_modules'));
}
return getInstalledPath(name, { local: true, paths: paths })
.then(installPath => {
Expand Down

0 comments on commit acb1c6e

Please sign in to comment.