Skip to content

Commit

Permalink
try to fix weird bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Mar 1, 2024
1 parent d466654 commit 1d52383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-cloudflare/src/helpers/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1d52383

Please sign in to comment.