Update util.ts

This commit is contained in:
James Ives 2020-06-06 11:01:28 -04:00
parent 7044d02ab5
commit 14e664afd2

View File

@ -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( throw new Error(
`The ${action.folder} directory you're trying to deploy doesn't exist. ❗` `The ${action.folder} directory you're trying to deploy doesn't exist. ❗`
) )