diff options
author | Fabio B <kandinsky454@protonmail.ch> | 2018-12-11 02:29:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-11 02:29:17 +0800 |
commit | 6c86cc8ab87ae6f8d435546ec80161faee7bce74 (patch) | |
tree | dcdf1233e5f86070b24b751c1b7792072360371d /packages/sol-compiler/src/compiler.ts | |
parent | 8d93413a5d49bcafe4b5d0dee359cc09afce7222 (diff) | |
parent | f14603ca4d91ca72d9e81de53168230d85bc50aa (diff) | |
download | dexon-sol-tools-6c86cc8ab87ae6f8d435546ec80161faee7bce74.tar dexon-sol-tools-6c86cc8ab87ae6f8d435546ec80161faee7bce74.tar.gz dexon-sol-tools-6c86cc8ab87ae6f8d435546ec80161faee7bce74.tar.bz2 dexon-sol-tools-6c86cc8ab87ae6f8d435546ec80161faee7bce74.tar.lz dexon-sol-tools-6c86cc8ab87ae6f8d435546ec80161faee7bce74.tar.xz dexon-sol-tools-6c86cc8ab87ae6f8d435546ec80161faee7bce74.tar.zst dexon-sol-tools-6c86cc8ab87ae6f8d435546ec80161faee7bce74.zip |
Merge pull request #1405 from 0xProject/tslint-changes
Implement prefer-template tslint rule
Diffstat (limited to 'packages/sol-compiler/src/compiler.ts')
-rw-r--r-- | packages/sol-compiler/src/compiler.ts | 2 |
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])) { |