Skip to content

Commit

Permalink
check file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
asanehisa committed Oct 30, 2023
1 parent 0c7bc57 commit a48b89e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/pages/src/common/src/template/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export const removeHydrationClientFiles = async (
projectStructure.config.subfolders.templates,
template
);
fs.rmSync(clientPath);
if (fs.existsSync(clientPath)) {
fs.rmSync(clientPath);
}
});
}
};

0 comments on commit a48b89e

Please sign in to comment.