Skip to content

Commit

Permalink
[no ci] mdx type issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
orifu committed Sep 25, 2024
1 parent 6c1ca77 commit 6a036ca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/ts/modrinth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,23 @@ export async function getOrgProjects(id: string): Promise<Project[]> {

export const projects = await getOrgProjects('rosebud');

export type RosebudModId =
| 'rainglow'
| 'berries'
| 'ramel'
| 'skinOverrides'
| 'styledRenaming'
| 'shutUpRealms';

export const mods = Object.fromEntries(
projects.map((proj) => [kebabToCamel(proj.slug), proj]),
);
) as Record<RosebudModId, Project>;

export const modsList = [
mods.rainglow!,
mods.berries!,
mods.ramel!,
mods.skinOverrides!,
mods.styledRenaming!,
mods.shutUpRealms!,
mods.rainglow,
mods.berries,
mods.ramel,
mods.skinOverrides,
mods.styledRenaming,
mods.shutUpRealms,
];
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"@components/*": ["src/components/*"],
"@ts/*": ["src/ts/*"]
}
},
"mdx": {
"checkMdx": true
}
}

0 comments on commit 6a036ca

Please sign in to comment.