diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-20 00:19:36 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-20 00:19:36 +0800 |
commit | 125a940560a01305781bfb6754f52fa64669a6f3 (patch) | |
tree | 70fc5d2aab95676245460eed72ba059c1661339f /packages/sol-resolver/src/resolvers/npm_resolver.ts | |
parent | a7f847bf3e693a275b0aa71bcdb12d947b445175 (diff) | |
parent | b3978b641c12c7bfe9bab1d561384eeaace25321 (diff) | |
download | dexon-sol-tools-125a940560a01305781bfb6754f52fa64669a6f3.tar.gz dexon-sol-tools-125a940560a01305781bfb6754f52fa64669a6f3.tar.zst dexon-sol-tools-125a940560a01305781bfb6754f52fa64669a6f3.zip |
Merge branch 'development' into feature/website/0x-org
Diffstat (limited to 'packages/sol-resolver/src/resolvers/npm_resolver.ts')
-rw-r--r-- | packages/sol-resolver/src/resolvers/npm_resolver.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/sol-resolver/src/resolvers/npm_resolver.ts b/packages/sol-resolver/src/resolvers/npm_resolver.ts index eeb2b5493..3c1d09557 100644 --- a/packages/sol-resolver/src/resolvers/npm_resolver.ts +++ b/packages/sol-resolver/src/resolvers/npm_resolver.ts @@ -32,10 +32,7 @@ export class NPMResolver extends Resolver { const lookupPath = path.join(currentPath, 'node_modules', packagePath, pathWithinPackage); if (fs.existsSync(lookupPath) && fs.lstatSync(lookupPath).isFile()) { const fileContent = fs.readFileSync(lookupPath).toString(); - return { - source: fileContent, - path: lookupPath, - }; + return { source: fileContent, path: importPath, absolutePath: lookupPath }; } currentPath = path.dirname(currentPath); } |