From 5a73b8a8e66a3b12a526fa44f77a80f6620dc130 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 10 May 2018 18:56:32 +0200 Subject: Replace mkdir with mkdirp so it also created any missing intermediate directories --- packages/deployer/src/utils/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/deployer/src/utils/compiler.ts') diff --git a/packages/deployer/src/utils/compiler.ts b/packages/deployer/src/utils/compiler.ts index c571b2581..3731385e2 100644 --- a/packages/deployer/src/utils/compiler.ts +++ b/packages/deployer/src/utils/compiler.ts @@ -40,7 +40,7 @@ export async function getContractArtifactIfExistsAsync( export async function createDirIfDoesNotExistAsync(dirPath: string): Promise { if (!fsWrapper.doesPathExistSync(dirPath)) { logUtils.log(`Creating directory at ${dirPath}...`); - await fsWrapper.mkdirAsync(dirPath); + await fsWrapper.mkdirpAsync(dirPath); } } -- cgit v1.2.3