yufan.me/patches/astro+4.10.3.patch

23 lines
681 B
Diff
Raw Normal View History

2024-06-17 23:45:27 +08:00
diff --git a/node_modules/astro/dist/content/types-generator.js b/node_modules/astro/dist/content/types-generator.js
index af976bb..b03e214 100644
--- a/node_modules/astro/dist/content/types-generator.js
+++ b/node_modules/astro/dist/content/types-generator.js
@@ -351,8 +351,6 @@ async function writeContentFiles({
collection: ${collectionKey};
data: ${dataType}
};
-`;
- dataTypesStr += `};
`;
}
if (settings.config.experimental.contentCollectionJsonSchema && collectionConfig?.schema) {
@@ -382,6 +380,8 @@ async function writeContentFiles({
);
}
}
+ dataTypesStr += `};
+`;
break;
}
}