Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
fix isPackageConfig detection
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Feb 25, 2016
1 parent 3639af4 commit 00c5840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ function isPackageConfig(loader, canonical) {
return configPathCache[canonical];

// check if the given canonical matches the canonical package config paths
configPathCache[canonical] = !!getPackageConfigPath(canonicalConfigPaths, canonical);
var cfgPathMatch = getPackageConfigPath(canonicalConfigPaths, canonical);
configPathCache[canonical] = cfgPathMatch && cfgPathMatch.split('/').length == canonical.split('/').length;

return configPathCache[canonical];
}
Expand Down

0 comments on commit 00c5840

Please sign in to comment.