Skip to content

Commit

Permalink
chore: speedup builds with shikijs/shiki#798
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Nov 20, 2024
1 parent ca916d7 commit a8c5a31
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
Binary file modified bun.lockb
Binary file not shown.
7 changes: 6 additions & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// import shikiColorizedBrackets from "@michael-makes/shiki-colorized-brackets";
import { transformerTwoslash } from "@shikijs/vitepress-twoslash";
import { createFileSystemTypesCache } from "@shikijs/vitepress-twoslash/cache-fs";
import presetIcons from "@unocss/preset-icons";
import Unocss from "unocss/vite";
import { defineConfig } from "vitepress";
Expand Down Expand Up @@ -82,7 +83,11 @@ export default defineConfig({
...localeRu,
},
markdown: {
codeTransformers: [transformerTwoslash() /**shikiColorizedBrackets()**/],
codeTransformers: [
transformerTwoslash({
typesCache: createFileSystemTypesCache(),
}) /**shikiColorizedBrackets()**/,
],
config: (md) => {
// @ts-ignore
md.use(groupIconMdPlugin);
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
"@gramio/keyboards": "^1.0.0",
"@gramio/prompt": "^1.1.4",
"@gramio/session": "^0.1.5",
"@gramio/types": "^7.11.0",
"@gramio/types": "^8.0.3",
"@iconify-json/logos": "^1.2.3",
"@iconify-json/skill-icons": "^1.2.0",
"@shikijs/vitepress-twoslash": "^1.22.2",
"@types/node": "^22.8.6",
"@unocss/preset-icons": "^0.63.6",
"elysia": "^1.1.24",
"@shikijs/vitepress-twoslash": "^1.23.1",
"@types/node": "^22.9.1",
"@unocss/preset-icons": "^0.64.1",
"elysia": "^1.1.25",
"gramio": "^0.1.2",
"grammy": "^1.31.0",
"undici": "^6.20.1",
"unocss": "^0.63.6",
"grammy": "^1.32.0",
"undici": "^6.21.0",
"unocss": "^0.64.1",
"vitepress": "^1.5.0",
"vitepress-plugin-group-icons": "^1.3.0"
},
Expand All @@ -36,6 +36,6 @@
"dependencies": {
"@gramio/scenes": "^0.0.5",
"ioredis": "^5.4.1",
"jobify": "^0.1.0"
"jobify": "^0.1.1"
}
}

0 comments on commit a8c5a31

Please sign in to comment.