Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
chore: types
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 23, 2023
1 parent f2a90c1 commit 6a82137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function replaceMarker(code: string, marker: string, content: string) {

async function run() {
let mdLangs = await fs.readFile('docs/languages.md', 'utf8')
const langs = await fs.readJSON('packages/shikiji/src/assets/langs.json')
const langs = await fs.readJSON('packages/shikiji/src/assets/langs.json') as { id: string, name?: string, aliases?: string[] }[]
mdLangs = replaceMarker(
mdLangs,
'all-languages',
Expand All @@ -24,7 +24,7 @@ async function run() {

// ---- Themes
let mdThemes = await fs.readFile('docs/themes.md', 'utf8')
const themes = await fs.readJSON('packages/shikiji/src/assets/themes.json')
const themes = await fs.readJSON('packages/shikiji/src/assets/themes.json') as { id: string, name?: string }[]
mdThemes = replaceMarker(
mdThemes,
'all-themes',
Expand Down

0 comments on commit 6a82137

Please sign in to comment.