diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-02 03:28:29 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-02 03:28:29 +0800 |
commit | c6f85464ced3cecb2a4a5b3b79a19b6fd56c8a58 (patch) | |
tree | c5dbda13f35991df12dbc3bc36d9a985f3b6777e /packages/deployer/src/utils/compiler.ts | |
parent | 0e33f45f3dbf7934692e3baa3daa90ddab0c184f (diff) | |
parent | a220b56736bcacfcce045329c99091af5932e723 (diff) | |
download | dexon-sol-tools-c6f85464ced3cecb2a4a5b3b79a19b6fd56c8a58.tar dexon-sol-tools-c6f85464ced3cecb2a4a5b3b79a19b6fd56c8a58.tar.gz dexon-sol-tools-c6f85464ced3cecb2a4a5b3b79a19b6fd56c8a58.tar.bz2 dexon-sol-tools-c6f85464ced3cecb2a4a5b3b79a19b6fd56c8a58.tar.lz dexon-sol-tools-c6f85464ced3cecb2a4a5b3b79a19b6fd56c8a58.tar.xz dexon-sol-tools-c6f85464ced3cecb2a4a5b3b79a19b6fd56c8a58.tar.zst dexon-sol-tools-c6f85464ced3cecb2a4a5b3b79a19b6fd56c8a58.zip |
Merge branch 'development' into refactor/publishProcess
* development:
Run prettier, update deployer CHANGELOG
Create solc_bin dir if does not exist before attempting to compile
Add missing type import
Diffstat (limited to 'packages/deployer/src/utils/compiler.ts')
-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); } } |