diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-02-18 06:07:05 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-02-21 05:19:12 +0800 |
commit | 7fb66bf71a0a86c693a0411c6e03d81982b9054e (patch) | |
tree | 524e67ee16acf9bd993f439e9850128a40311596 /packages/deployer/src/cli.ts | |
parent | 097fc477a2e06b8004d98e77dc17d98ab26ab3f1 (diff) | |
download | dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.gz dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.bz2 dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.lz dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.xz dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.zst dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.zip |
Check dependencies when determining if should be recompiled
Diffstat (limited to 'packages/deployer/src/cli.ts')
-rw-r--r-- | packages/deployer/src/cli.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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<string> { 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; } |