diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-04-01 14:54:56 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-02 01:45:25 +0800 |
commit | 20fec2943bebc50059b1a9a0646f263b07aba88b (patch) | |
tree | 431c578baba8be739f243f786bd035e207beffa0 /packages/deployer/src/utils | |
parent | 1bac5019e84a11843fed3100c36c9b3c47abe430 (diff) | |
download | dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.gz dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.bz2 dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.lz dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.xz dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.zst dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.zip |
Create solc_bin dir if does not exist before attempting to compile
Diffstat (limited to 'packages/deployer/src/utils')
-rw-r--r-- | packages/deployer/src/utils/compiler.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/deployer/src/utils/compiler.ts b/packages/deployer/src/utils/compiler.ts index 9c8fef26d..d5137d394 100644 --- a/packages/deployer/src/utils/compiler.ts +++ b/packages/deployer/src/utils/compiler.ts @@ -34,13 +34,13 @@ export async function getContractArtifactIfExistsAsync( } /** - * Creates the artifacts directory if it does not already exist. - * @param artifactsDir Path to the artifacts directory. + * Creates a directory if it does not already exist. + * @param artifactsDir Path to the directory. */ -export async function createArtifactsDirIfDoesNotExistAsync(artifactsDir: string): Promise<void> { - if (!fsWrapper.doesPathExistSync(artifactsDir)) { - logUtils.log('Creating artifacts directory...'); - await fsWrapper.mkdirAsync(artifactsDir); +export async function createDirIfDoesNotExistAsync(dirPath: string): Promise<void> { + if (!fsWrapper.doesPathExistSync(dirPath)) { + logUtils.log(`Creating directory at ${dirPath}...`); + await fsWrapper.mkdirAsync(dirPath); } } |