aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-resolver
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-07 09:07:22 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-07 09:07:22 +0800
commit2af6d3f6bc03932f53d199971694c3c0d9441ba8 (patch)
treeb17f3343a635aa72a917b89f278f63924e25da3e /packages/sol-resolver
parentcbe5438a31a54a92a198b2cc5ad8a5d5feb033b4 (diff)
parent67c4ad128c405692e471274148c9a2ef7cd8b6ca (diff)
downloaddexon-sol-tools-2af6d3f6bc03932f53d199971694c3c0d9441ba8.tar
dexon-sol-tools-2af6d3f6bc03932f53d199971694c3c0d9441ba8.tar.gz
dexon-sol-tools-2af6d3f6bc03932f53d199971694c3c0d9441ba8.tar.bz2
dexon-sol-tools-2af6d3f6bc03932f53d199971694c3c0d9441ba8.tar.lz
dexon-sol-tools-2af6d3f6bc03932f53d199971694c3c0d9441ba8.tar.xz
dexon-sol-tools-2af6d3f6bc03932f53d199971694c3c0d9441ba8.tar.zst
dexon-sol-tools-2af6d3f6bc03932f53d199971694c3c0d9441ba8.zip
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/website/onboarding-flow-allowances
Diffstat (limited to 'packages/sol-resolver')
-rw-r--r--packages/sol-resolver/package.json4
-rw-r--r--packages/sol-resolver/src/resolvers/name_resolver.ts2
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 = {