aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio B <kandinsky454@protonmail.ch>2018-12-03 20:35:03 +0800
committerGitHub <noreply@github.com>2018-12-03 20:35:03 +0800
commit9194537085a65fbb6b25d45c5ac5c2d31712455c (patch)
tree3d596f8852785f80ea008509e62f02736d62aea5 /packages
parent91397bf8a55a3da4ab79bdcd711755a6a6b33073 (diff)
downloaddexon-0x-contracts-9194537085a65fbb6b25d45c5ac5c2d31712455c.tar
dexon-0x-contracts-9194537085a65fbb6b25d45c5ac5c2d31712455c.tar.gz
dexon-0x-contracts-9194537085a65fbb6b25d45c5ac5c2d31712455c.tar.bz2
dexon-0x-contracts-9194537085a65fbb6b25d45c5ac5c2d31712455c.tar.lz
dexon-0x-contracts-9194537085a65fbb6b25d45c5ac5c2d31712455c.tar.xz
dexon-0x-contracts-9194537085a65fbb6b25d45c5ac5c2d31712455c.tar.zst
dexon-0x-contracts-9194537085a65fbb6b25d45c5ac5c2d31712455c.zip
Update packages/sol-resolver/src/resolvers/npm_resolver.ts
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/sol-resolver/src/resolvers/npm_resolver.ts2
1 files changed, 1 insertions, 1 deletions
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();