From 7fb66bf71a0a86c693a0411c6e03d81982b9054e Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Sat, 17 Feb 2018 15:07:05 -0700 Subject: Check dependencies when determining if should be recompiled --- packages/deployer/src/cli.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/deployer/src/cli.ts') diff --git a/packages/deployer/src/cli.ts b/packages/deployer/src/cli.ts index 3c6d042c0..b093dd71b 100644 --- a/packages/deployer/src/cli.ts +++ b/packages/deployer/src/cli.ts @@ -6,6 +6,7 @@ import * as Web3 from 'web3'; import * as yargs from 'yargs'; import { commands } from './commands'; +import { constants } from './utils/constants'; import { CliOptions, CompilerOptions, DeployerOptions } from './utils/types'; const DEFAULT_OPTIMIZER_ENABLED = false; @@ -15,7 +16,6 @@ const DEFAULT_NETWORK_ID = 50; const DEFAULT_JSONRPC_PORT = 8545; const DEFAULT_GAS_PRICE = (10 ** 9 * 2).toString(); const DEFAULT_CONTRACTS_LIST = '*'; - /** * Compiles all contracts with options passed in through CLI. * @param argv Instance of process.argv provided by yargs. @@ -101,7 +101,8 @@ function getContractsSetFromList(contracts: string): Set { const specifiedContracts = new Set(); const contractsArray = contracts.split(','); _.forEach(contractsArray, contractName => { - specifiedContracts.add(contractName); + const fileName = `${contractName}${constants.SOLIDITY_FILE_EXTENSION}`; + specifiedContracts.add(fileName); }); return specifiedContracts; } -- cgit v1.2.3 From 67f28645018244a0aeda6404b7fd4ea33c67110f Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Tue, 20 Feb 2018 13:42:35 -0800 Subject: Address feedback --- packages/deployer/src/cli.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/deployer/src/cli.ts') diff --git a/packages/deployer/src/cli.ts b/packages/deployer/src/cli.ts index b093dd71b..ba156ac20 100644 --- a/packages/deployer/src/cli.ts +++ b/packages/deployer/src/cli.ts @@ -16,6 +16,7 @@ const DEFAULT_NETWORK_ID = 50; const DEFAULT_JSONRPC_PORT = 8545; const DEFAULT_GAS_PRICE = (10 ** 9 * 2).toString(); const DEFAULT_CONTRACTS_LIST = '*'; + /** * Compiles all contracts with options passed in through CLI. * @param argv Instance of process.argv provided by yargs. -- cgit v1.2.3