Skip to content

Commit

Permalink
fix: subpkg detection assumed unix dir seperators
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-go committed Dec 24, 2017
1 parent c495161 commit 9ff46ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,7 @@ function isProjSubpackage(pkgPath, projectRootPath) {
}

var pkgRelativePath = pkgPath.slice(root.length);

if (
pkgRelativePath.indexOf('vendor/') == 0 ||
pkgRelativePath.indexOf('/vendor/') >= 0) {
if (pkgRelativePath.split(path.sep).indexOf('vendor') !== -1) {
return false;
}

Expand Down

0 comments on commit 9ff46ec

Please sign in to comment.