Skip to content

Commit

Permalink
chore: remove duplicate folder creation
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Sep 18, 2024
1 parent 92bdac7 commit a850394
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/astro/src/content/types-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,6 @@ async function writeContentFiles({
contentConfig ? `typeof import(${configPathRelativeToCacheDir})` : 'never',
);

fs.mkdirSync(settings.dotAstroDir, { recursive: true });
// If it's the first time, we inject types the usual way. sync() will handle creating files and references. If it's not the first time, we just override the dts content
if (settings.injectedTypes.some((t) => t.filename === CONTENT_TYPES_FILE)) {
await fs.promises.writeFile(
Expand Down

0 comments on commit a850394

Please sign in to comment.