diff --git a/packages/shiki/package.json b/packages/shiki/package.json index c015af2a7..bd25389d3 100644 --- a/packages/shiki/package.json +++ b/packages/shiki/package.json @@ -100,7 +100,8 @@ "test:cf": "wrangler dev test/cf.ts --port 60001" }, "dependencies": { - "@shikijs/core": "workspace:*" + "@shikijs/core": "workspace:*", + "@types/hast": "^3.0.4" }, "devDependencies": { "tm-grammars": "^1.13.6", diff --git a/packages/shiki/src/bundle-full.ts b/packages/shiki/src/bundle-full.ts index ab741d502..343d3e35b 100644 --- a/packages/shiki/src/bundle-full.ts +++ b/packages/shiki/src/bundle-full.ts @@ -5,6 +5,7 @@ import type { BundledTheme } from './themes' import { bundledLanguages } from './assets/langs-bundle-full' import { bundledThemes } from './themes' import { getWasmInlined } from './wasm-dynamic' +import type {} from 'hast' export * from './core' export * from './themes' diff --git a/packages/shiki/src/bundle-web.ts b/packages/shiki/src/bundle-web.ts index 822c04f40..d97744f22 100644 --- a/packages/shiki/src/bundle-web.ts +++ b/packages/shiki/src/bundle-web.ts @@ -5,6 +5,7 @@ import type { BundledTheme } from './themes' import { bundledLanguages } from './assets/langs-bundle-web' import { bundledThemes } from './themes' import { getWasmInlined } from './wasm-dynamic' +import type {} from 'hast' export * from './core' export * from './themes' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 06fe20986..25edcca71 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -342,6 +342,9 @@ importers: '@shikijs/core': specifier: workspace:* version: link:../core + '@types/hast': + specifier: ^3.0.4 + version: 3.0.4 devDependencies: tm-grammars: specifier: ^1.13.6