From 1d5238389f1f90272b48ae321975895b5f58d892 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Fri, 1 Mar 2024 11:29:32 +0000 Subject: [PATCH] try to fix weird bug --- packages/create-cloudflare/src/helpers/files.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-cloudflare/src/helpers/files.ts b/packages/create-cloudflare/src/helpers/files.ts index c35195756732..455f26437e12 100644 --- a/packages/create-cloudflare/src/helpers/files.ts +++ b/packages/create-cloudflare/src/helpers/files.ts @@ -39,8 +39,8 @@ export const readFile = (path: string) => { export const directoryExists = (path: string): boolean => { try { - const { isDirectory } = statSync(path); - return isDirectory(); + const stat = statSync(path); + return stat.isDirectory(); } catch (error) { if ((error as { code: string }).code === "ENOENT") { return false;