From 9194537085a65fbb6b25d45c5ac5c2d31712455c Mon Sep 17 00:00:00 2001 From: Fabio B Date: Mon, 3 Dec 2018 13:35:03 +0100 Subject: Update packages/sol-resolver/src/resolvers/npm_resolver.ts Co-Authored-By: LogvinovLeon --- packages/sol-resolver/src/resolvers/npm_resolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sol-resolver/src/resolvers/npm_resolver.ts b/packages/sol-resolver/src/resolvers/npm_resolver.ts index 505362c88..222766be7 100644 --- a/packages/sol-resolver/src/resolvers/npm_resolver.ts +++ b/packages/sol-resolver/src/resolvers/npm_resolver.ts @@ -26,7 +26,7 @@ export class NPMResolver extends Resolver { let currentPath = this._packagePath; const ROOT_PATH = '/'; while (currentPath !== ROOT_PATH) { - const packagePath = _.isUndefined(packageScope) ? packageName : path.join(packageScope, packageName); + const packagePath = _.isUndefined(packageScopeIfExists) ? packageName : path.join(packageScopeIfExists, packageName); const lookupPath = path.join(currentPath, 'node_modules', packagePath, pathWithinPackage); if (fs.existsSync(lookupPath) && fs.lstatSync(lookupPath).isFile()) { const fileContent = fs.readFileSync(lookupPath).toString(); -- cgit