aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src/utils/compiler.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-02 03:15:34 +0800
committerGitHub <noreply@github.com>2018-04-02 03:15:34 +0800
commita220b56736bcacfcce045329c99091af5932e723 (patch)
treec2350f7b9cf586552e9c1077a9af4f079d15bf46 /packages/deployer/src/utils/compiler.ts
parent19454a92dcf29c3c50d3d62cbda3c62b7bafe37f (diff)
parentff7c3012a56d0744fa2bcaec0158c85b04293980 (diff)
downloaddexon-sol-tools-a220b56736bcacfcce045329c99091af5932e723.tar
dexon-sol-tools-a220b56736bcacfcce045329c99091af5932e723.tar.gz
dexon-sol-tools-a220b56736bcacfcce045329c99091af5932e723.tar.bz2
dexon-sol-tools-a220b56736bcacfcce045329c99091af5932e723.tar.lz
dexon-sol-tools-a220b56736bcacfcce045329c99091af5932e723.tar.xz
dexon-sol-tools-a220b56736bcacfcce045329c99091af5932e723.tar.zst
dexon-sol-tools-a220b56736bcacfcce045329c99091af5932e723.zip
Merge pull request #491 from 0xProject/fix/buildErrors
Fix build errors
Diffstat (limited to 'packages/deployer/src/utils/compiler.ts')
-rw-r--r--packages/deployer/src/utils/compiler.ts12
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);
}
}