aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-resolver
diff options
context:
space:
mode:
authorFabio B <kandinsky454@protonmail.ch>2018-12-03 20:35:57 +0800
committerGitHub <noreply@github.com>2018-12-03 20:35:57 +0800
commit8c69a8f1fbb074ed5654e9c50fab2c3db10556ab (patch)
treedbe67f15051874d90991e71c8b21d32aebcfe699 /packages/sol-resolver
parent9194537085a65fbb6b25d45c5ac5c2d31712455c (diff)
downloaddexon-sol-tools-8c69a8f1fbb074ed5654e9c50fab2c3db10556ab.tar
dexon-sol-tools-8c69a8f1fbb074ed5654e9c50fab2c3db10556ab.tar.gz
dexon-sol-tools-8c69a8f1fbb074ed5654e9c50fab2c3db10556ab.tar.bz2
dexon-sol-tools-8c69a8f1fbb074ed5654e9c50fab2c3db10556ab.tar.lz
dexon-sol-tools-8c69a8f1fbb074ed5654e9c50fab2c3db10556ab.tar.xz
dexon-sol-tools-8c69a8f1fbb074ed5654e9c50fab2c3db10556ab.tar.zst
dexon-sol-tools-8c69a8f1fbb074ed5654e9c50fab2c3db10556ab.zip
Update packages/sol-resolver/src/resolvers/npm_resolver.ts
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
Diffstat (limited to 'packages/sol-resolver')
-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 222766be7..6c7ebdcd1 100644
--- a/packages/sol-resolver/src/resolvers/npm_resolver.ts
+++ b/packages/sol-resolver/src/resolvers/npm_resolver.ts
@@ -15,7 +15,7 @@ export class NPMResolver extends Resolver {
public resolveIfExists(importPath: string): ContractSource | undefined {
if (!importPath.startsWith('/')) {
let packageName;
- let packageScope;
+ let packageScopeIfExists;
let other;
if (importPath.startsWith('@')) {
[packageScope, packageName, ...other] = importPath.split('/');