Skip to content

Commit

Permalink
fix: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Feb 25, 2025
1 parent 755768a commit 0ba5d99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"lint": "eslint .",
"typecheck": "nuxt typecheck",
"test": "vitest run",
"test:watch": "vitest watch"
"test:watch": "vitest watch",
"verify": "npm run dev:prepare && npm run lint && npm run test && npm run typecheck"
},
"dependencies": {
"@nuxt/kit": "^3.15.2",
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/highlighter/shiki.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CodeToHastOptions } from 'shiki/core'
import type { HighlighterCore, LanguageInput, ShikiTransformer, ThemeInput, RegexEngine } from 'shiki'
import { type HighlighterCore, type LanguageInput, type ShikiTransformer, type ThemeInput, type RegexEngine, createJavaScriptRegexEngine } from 'shiki'
import type { Element } from 'hast'
import type { MdcConfig, Highlighter } from '@nuxtjs/mdc'

Expand Down Expand Up @@ -39,7 +39,7 @@ export function createShikiHighlighter({
const shiki: HighlighterCore = await createHighlighterCore({
langs,
themes,
engine
engine: engine || createJavaScriptRegexEngine()
})

for await (const config of await getConfigs()) {
Expand Down

0 comments on commit 0ba5d99

Please sign in to comment.