From 14e664afd2d44862f926e77a0b5a80b42d1e830a Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 6 Jun 2020 11:01:28 -0400 Subject: [PATCH] Update util.ts --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 5994a2b8..e0ab5c49 100644 --- a/src/util.ts +++ b/src/util.ts @@ -52,7 +52,7 @@ export const hasRequiredParameters = (action: ActionInterface): void => { ) } - if (!existsSync(action.folder)) { + if (!existsSync(action.folder) && action.folder !== action.root) { throw new Error( `The ${action.folder} directory you're trying to deploy doesn't exist. ❗` )