diff --git a/.npmrc b/.npmrc deleted file mode 100644 index ab953072..00000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -shell-emulator=true -auto-install-peers=false diff --git a/README.md b/README.md index aedcd487..c6533b30 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # VitePress 📝💨 [![test](https://github.com/vuejs/vitepress/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/vuejs/vitepress/actions/workflows/test.yml) -[![npm](https://img.shields.io/npm/v/vitepress)](https://www.npmjs.com/package/vitepress) +[![npm](https://img.shields.io/npm/v/vitepress/next)](https://www.npmjs.com/package/vitepress/v/next) [![nightly releases](https://img.shields.io/badge/nightly-releases-orange)](https://nightly.akryum.dev/vuejs/vitepress) [![chat](https://img.shields.io/badge/chat-discord-blue?logo=discord)](https://chat.vuejs.org) diff --git a/package.json b/package.json index a83b64e8..b9b1619f 100644 --- a/package.json +++ b/package.json @@ -208,16 +208,5 @@ "optional": true } }, - "packageManager": "pnpm@10.13.1", - "pnpm": { - "overrides": { - "ora>string-width": "^5", - "vite": "npm:rolldown-vite@latest" - }, - "patchedDependencies": { - "@types/mdurl@2.0.0": "patches/@types__mdurl@2.0.0.patch", - "markdown-it-anchor@9.2.0": "patches/markdown-it-anchor@9.2.0.patch" - }, - "neverBuiltDependencies": [] - } + "packageManager": "pnpm@10.13.1" } diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 8d0353c9..eb3783b5 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,19 @@ packages: - docs - __tests__/* + +onlyBuiltDependencies: + - esbuild + - playwright-chromium + - simple-git-hooks + +overrides: + ora>string-width: ^5 + vite: npm:rolldown-vite@latest + +patchedDependencies: + '@types/mdurl@2.0.0': patches/@types__mdurl@2.0.0.patch + markdown-it-anchor@9.2.0: patches/markdown-it-anchor@9.2.0.patch + +autoInstallPeers: false +shellEmulator: true diff --git a/src/client/app/devtools.ts b/src/client/app/devtools.ts index 54998fb1..cbc0fd3b 100644 --- a/src/client/app/devtools.ts +++ b/src/client/app/devtools.ts @@ -21,8 +21,7 @@ export const setupDevtools = ( componentStateTypes: [COMPONENT_STATE_TYPE] }, (api) => { - // TODO: remove any - api.on.inspectComponent((payload: any) => { + api.on.inspectComponent((payload) => { payload.instanceData.state.push({ type: COMPONENT_STATE_TYPE, key: 'route', diff --git a/src/client/theme-default/Layout.vue b/src/client/theme-default/Layout.vue index 30ebe491..ace5edd5 100644 --- a/src/client/theme-default/Layout.vue +++ b/src/client/theme-default/Layout.vue @@ -8,7 +8,7 @@ import VPNav from './components/VPNav.vue' import VPSidebar from './components/VPSidebar.vue' import VPSkipLink from './components/VPSkipLink.vue' import { useData } from './composables/data' -import { registerWatchers } from './composables/layout' +import { layoutInfoInjectionKey, registerWatchers } from './composables/layout' import { useSidebarControl } from './composables/sidebar' const { @@ -24,7 +24,7 @@ const { frontmatter } = useData() const slots = useSlots() const heroImageSlotExists = computed(() => !!slots['home-hero-image']) -provide('hero-image-slot-exists', heroImageSlotExists) +provide(layoutInfoInjectionKey, { heroImageSlotExists })