From 9ff46ec686f2c83f5b194e39c211424bb43464b3 Mon Sep 17 00:00:00 2001 From: Michael Gokhman Date: Sun, 24 Dec 2017 11:02:30 +0200 Subject: [PATCH] fix: subpkg detection assumed unix dir seperators --- lib/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index e5ff01e..938716f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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; }