aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src
diff options
context:
space:
mode:
authorkao <zichongkao@gmail.com>2018-12-08 08:35:00 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:19:31 +0800
commit93422eab55f674ed33168a4731884e54d5a9ca78 (patch)
treea3829d1abdfd07171319db5454d9a4336fc62888 /packages/sol-compiler/src
parent74e07b63de9688aa0dca2ce69863203766db6008 (diff)
downloaddexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar
dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.gz
dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.bz2
dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.lz
dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.xz
dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.zst
dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.zip
Implement prefer-template tslint rule
Diffstat (limited to 'packages/sol-compiler/src')
-rw-r--r--packages/sol-compiler/src/compiler.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts
index cba67f292..85df8209e 100644
--- a/packages/sol-compiler/src/compiler.ts
+++ b/packages/sol-compiler/src/compiler.ts
@@ -400,7 +400,7 @@ export class Compiler {
* while others are absolute ("Token.sol", "@0x/contracts/Wallet.sol")
* And we need to append the base path for relative imports.
*/
- importPath = path.resolve('/' + contractFolder, importPath).replace('/', '');
+ importPath = path.resolve(`/${contractFolder}`, importPath).replace('/', '');
}
if (_.isUndefined(sourcesToAppendTo[importPath])) {