diff --git a/package.json b/package.json index 0b29cba..3cceced 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "yaml": "catalog:" }, "resolutions": { - "oniguruma-to-js": "^0.4.2" + "oniguruma-to-js": "^0.4.3" }, "simple-git-hooks": { "pre-commit": "npx lint-staged" diff --git a/playground/src/App.vue b/playground/src/App.vue index a21b934..aaa52e2 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -3,7 +3,6 @@ import type { HighlighterCore } from '@shikijs/core' import { createHighlighterCore, createJavaScriptRegexEngine, createWasmOnigEngine } from '@shikijs/core' import { grammars, injections } from '../../packages/tm-grammars/index' import { themes } from '../../packages/tm-themes/index' -import { dependencies } from '../package.json' import Badge from './Badge.vue' import SegmentControl from './SegmentControl.vue' import { engine, engineJsForgiving, grammar, isDark, theme } from './state' @@ -192,6 +191,9 @@ watch( { flush: 'post' }, ) +// @ts-expect-error DEFINE +const version = __VERSION__ + useTitle(() => `${grammarObject.value?.displayName || grammar.value} - ${themeObject.value?.displayName || theme.value} - TextMate Playground`) if (import.meta.hot) { @@ -207,7 +209,7 @@ if (import.meta.hot) { Shiki TextMate Grammar & Theme Playground - +