feat: convert all files to esm

This commit is contained in:
Devin Haska 2024-10-03 22:52:20 -07:00
parent ef6923ece6
commit e8fd3a17d2
34 changed files with 202 additions and 228 deletions

View file

@ -1,4 +1,4 @@
const postsByTag = (collection) => {
export const postsByTag = (collection) => {
const posts = collection.getFilteredByTag("post");
const postsByTag = {};
@ -13,7 +13,7 @@ const postsByTag = (collection) => {
return postsByTag;
};
const catalogueByType = (collection) => {
export const catalogueByType = (collection) => {
const allItems = collection.getFilteredByTag("catalogue");
const catalogueByType = {};
@ -28,8 +28,3 @@ const catalogueByType = (collection) => {
return catalogueByType;
};
module.exports = {
catalogueByType,
postsByTag,
};