From 10025bdde73ddd5ab945537dd19fc27930a9b781 Mon Sep 17 00:00:00 2001 From: "@andatoshiki" Date: Wed, 13 Sep 2023 20:02:09 -0700 Subject: [PATCH] fix(vercel): refactor and lint root code sources & update pnpm installation command for vercel by swapping default vercel pnpm version instead of using third-party registry sources --- docs/.vitepress/theme/index.ts | 10 +++++----- docs/components.d.ts | 1 - vercel.json | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 035a895d..23030cd6 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -81,16 +81,16 @@ export default { setup() { const route = useRoute() const initZoom = () => { - mediumZoom('.main img', { background: 'var(--vp-c-bg)' }) // Should there be a new? + mediumZoom('.main img', { background: 'var(--vp-c-bg)' }) // Should there be a new? } onMounted(() => { - initZoom() + initZoom() }) watch( - () => route.path, - () => nextTick(() => initZoom()), + () => route.path, + () => nextTick(() => initZoom()) ) - }, + }, enhanceApp(ctx) { // custom component tag/slot diff --git a/docs/components.d.ts b/docs/components.d.ts index f946c4b7..fe0f9697 100644 --- a/docs/components.d.ts +++ b/docs/components.d.ts @@ -11,7 +11,6 @@ declare module '@vue/runtime-core' { export interface GlobalComponents { AsideSponsors: typeof import('./.vitepress/theme/components/AsideSponsors.vue')['default'] CardLink: typeof import('./.vitepress/theme/components/CardLink.vue')['default'] - CodeTitle: typeof import('./.vitepress/theme/components/layout/CodeTitle.vue')['default'] Comment: typeof import('./.vitepress/theme/components/layout/Comment.vue')['default'] Copyright: typeof import('./.vitepress/theme/components/Copyright.vue')['default'] Footer: typeof import('./.vitepress/theme/components/layout/Footer.vue')['default'] diff --git a/vercel.json b/vercel.json index e174eccc..1c71a719 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,5 @@ { - "installCommand": "pnpm add -g pnpm@8.3.1 && pnpm install --force", + "installCommand": "pnpm i", "buildCommand": "pnpm docs:build", "devCommand": "pnpm docs:dev", "cleanUrls": true,