diff --git a/bun.lockb b/bun.lockb index 07abc7ac..0511f2f7 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index f1160bb5..a3824a0d 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -2,6 +2,8 @@ import { defineConfig } from 'vitepress' import { transformerTwoslash } from '@shikijs/vitepress-twoslash' +import { createFileSystemTypesCache } from '@shikijs/vitepress-twoslash/cache-fs' + const description = 'Ergonomic Framework for Humans. TypeScript framework supercharged by Bun with End - to - End Type Safety, unified type system and outstanding developer experience' @@ -16,7 +18,11 @@ export default defineConfig({ light: 'github-light', dark: 'github-dark' }, - codeTransformers: [transformerTwoslash()] + codeTransformers: [transformerTwoslash({ + typesCache: createFileSystemTypesCache({ + dir: 'docs/.vitepress/cache/twoslash' + }) + })] }, // ![INFO] uncomment for support hot reload on WSL - https://github.com/vitejs/vite/issues/1153#issuecomment-785467271 vite: { diff --git a/package.json b/package.json index 28051994..8f33e389 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "license": "MIT", "dependencies": { "@iconify/json": "^2.2.222", - "@shikijs/vitepress-twoslash": "^1.17.0", + "@shikijs/vitepress-twoslash": "^1.23.1", "@tailwindcss/postcss7-compat": "^2.2.17", "autoprefixer": "^10.4.19", "daisyui": "^4.12.10", @@ -18,7 +18,7 @@ "postcss": "^8.4.38", "postcss-nesting": "^12.1.5", "postcss-preset-env": "^9.5.14", - "shiki": "^1.17.0", + "shiki": "^1.23.1", "tailwindcss": "^3.4.11", "vite": "^5.4.4" }, @@ -34,7 +34,7 @@ "markdown-it": "^14.1.0", "react": "^18.3.1", "view-transitions-api-types": "^0.1.1", - "vitepress": "^1.3.3", + "vitepress": "^1.5.0", "vue": "^3.4.30" }, "scripts": {