From f42bb95f89653d33e0adee78e2a5729015f57d3c Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 30 Jan 2024 11:51:33 +0100 Subject: [PATCH] docs: import `@nuxt/ui-pro` package to display version --- docs/composables/useContentSource.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/composables/useContentSource.ts b/docs/composables/useContentSource.ts index a378c0db49..4d727a21ab 100644 --- a/docs/composables/useContentSource.ts +++ b/docs/composables/useContentSource.ts @@ -1,3 +1,5 @@ +import pkg from '@nuxt/ui-pro/package.json' + export const useContentSource = () => { const route = useRoute() const router = useRouter() @@ -22,7 +24,7 @@ export const useContentSource = () => { name: 'pro', label: 'nuxt/ui-pro', icon: 'i-heroicons-cube', - suffix: `v${config.proVersion}`, + suffix: `v${pkg.version.split('-')[0]}`, click: () => select({ name: 'pro' }) }, { id: 'pro-edge',