diff options
author | Jacob Evans <dekz@dekz.net> | 2018-06-18 19:50:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 19:50:35 +0800 |
commit | 190eafc30e2e444ed15b76217a6162ec04b33f73 (patch) | |
tree | b20cbad73ff7a069dc0f0ef43ebc0373c714ad02 /packages/sol-resolver | |
parent | d4ee0e862297c16f8ee62efccd31f1193052c64e (diff) | |
parent | 0c238448fda99c4d7997901d0fe4d72cb06b79cc (diff) | |
download | dexon-0x-contracts-190eafc30e2e444ed15b76217a6162ec04b33f73.tar dexon-0x-contracts-190eafc30e2e444ed15b76217a6162ec04b33f73.tar.gz dexon-0x-contracts-190eafc30e2e444ed15b76217a6162ec04b33f73.tar.bz2 dexon-0x-contracts-190eafc30e2e444ed15b76217a6162ec04b33f73.tar.lz dexon-0x-contracts-190eafc30e2e444ed15b76217a6162ec04b33f73.tar.xz dexon-0x-contracts-190eafc30e2e444ed15b76217a6162ec04b33f73.tar.zst dexon-0x-contracts-190eafc30e2e444ed15b76217a6162ec04b33f73.zip |
Merge branch 'v2-prototype' into bug/contracts/eip712-191-prefix
Diffstat (limited to 'packages/sol-resolver')
-rw-r--r-- | packages/sol-resolver/package.json | 4 | ||||
-rw-r--r-- | packages/sol-resolver/src/resolvers/name_resolver.ts | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/packages/sol-resolver/package.json b/packages/sol-resolver/package.json index 64a0f19ab..6c2ed8f8b 100644 --- a/packages/sol-resolver/package.json +++ b/packages/sol-resolver/package.json @@ -8,8 +8,8 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { - "watch": "tsc -w", - "build": "yarn clean && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts", + "watch_without_deps": "tsc -w", + "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts", "clean": "shx rm -rf lib scripts", "lint": "tslint --project .", "manual:postpublish": "yarn build; node ./scripts/postpublish.js" diff --git a/packages/sol-resolver/src/resolvers/name_resolver.ts b/packages/sol-resolver/src/resolvers/name_resolver.ts index e489c70a7..bcd98615f 100644 --- a/packages/sol-resolver/src/resolvers/name_resolver.ts +++ b/packages/sol-resolver/src/resolvers/name_resolver.ts @@ -1,5 +1,4 @@ import * as fs from 'fs'; -import * as _ from 'lodash'; import * as path from 'path'; import { ContractSource } from '../types'; @@ -35,7 +34,6 @@ export class NameResolver extends EnumerableResolver { public getAll(): ContractSource[] { const contractSources: ContractSource[] = []; const onFile = (filePath: string) => { - const contractName = path.basename(filePath, SOLIDITY_FILE_EXTENSION); const absoluteContractPath = path.join(this._contractsDir, filePath); const source = fs.readFileSync(absoluteContractPath).toString(); const contractSource = { |