Skip to content

Commit

Permalink
chore: upgrade shiki
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 9, 2024
1 parent 01d6fc2 commit a8e36ee
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 247 deletions.
10 changes: 1 addition & 9 deletions app/composables/shiki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,7 @@ export function useHighlightedGlob(code: () => string) {
return shiki.value.codeToHtml(code(), {
lang: 'glob',
theme: isDark ? 'vitesse-dark' : 'vitesse-light',
transformers: [
{
root(node) {
node.children = [
(node.children[0] as any).children[0],
]
},
},
],
structure: 'inline',
})
})
}
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@
"ws": "^8.16.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.12.1",
"@antfu/eslint-config": "^2.13.2",
"@eslint/js": "^9.0.0",
"@iconify-json/carbon": "^1.1.31",
"@iconify-json/file-icons": "^1.1.8",
"@iconify-json/logos": "^1.1.42",
"@iconify-json/ph": "^1.1.12",
"@iconify-json/simple-icons": "^1.1.98",
"@iconify-json/simple-icons": "^1.1.99",
"@iconify-json/svg-spinners": "^1.1.2",
"@iconify-json/twemoji": "^1.1.15",
"@iconify-json/vscode-icons": "^1.1.33",
"@nuxt/eslint": "^0.3.1",
"@nuxt/eslint": "^0.3.4",
"@types/connect": "^3.4.38",
"@types/ws": "^8.5.10",
"@typescript-eslint/utils": "^7.5.0",
"@typescript-eslint/utils": "^7.6.0",
"@unocss/eslint-config": "^0.59.0",
"@unocss/nuxt": "^0.59.0",
"@vueuse/nuxt": "^10.9.0",
Expand All @@ -71,12 +71,12 @@
"lint-staged": "^15.2.2",
"nuxt": "^3.11.2",
"nuxt-eslint-auto-explicit-import": "^0.0.2",
"shiki": "^1.2.4",
"shiki": "^1.3.0",
"simple-git-hooks": "^2.11.1",
"textmate-grammar-glob": "^0.0.1",
"typescript": "^5.4.4",
"unbuild": "^2.0.0",
"vue-tsc": "^2.0.10"
"vue-tsc": "^2.0.11"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
Expand Down

0 comments on commit a8e36ee

Please sign in to comment.