From b247d309a0413425423bf4320ba18a2380d767f8 Mon Sep 17 00:00:00 2001 From: Yue JIN Date: Sun, 23 Jun 2024 19:52:17 +0800 Subject: [PATCH] chore: exclude docs from typecheck --- package.json | 3 ++- src/runtime/components/VChartLight.vue | 1 - src/runtime/components/VChartServer.vue | 2 +- tsconfig.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5d025f5..3e2154e 100644 --- a/package.json +++ b/package.json @@ -34,11 +34,12 @@ "release": "pnpm run lint && pnpm run test && pnpm run prepack && changelogen --release && npm publish --registry=\"https://registry.npmjs.org/\" && git push --follow-tags", "docs:dev": "nuxi dev docs", "docs:build": "nuxi generate docs", + "docs:types": "nuxi typecheck docs", "lint": "eslint . --fix", "format": "prettier . --write", "test": "vitest run", "test:watch": "vitest watch", - "test:types": "vue-tsc --noEmit && nuxi typecheck docs && cd playground && vue-tsc --noEmit" + "test:types": "nuxi typecheck && nuxi typecheck playground" }, "dependencies": { "@nuxt/kit": "^3.12.2", diff --git a/src/runtime/components/VChartLight.vue b/src/runtime/components/VChartLight.vue index 4a65996..7f54337 100644 --- a/src/runtime/components/VChartLight.vue +++ b/src/runtime/components/VChartLight.vue @@ -20,7 +20,6 @@ defineProps<{ theme?: Theme initOptions?: InitOptions }>() -defineOptions({ inheritAttrs: false }) type ECSSRHandler = (params: ECSSRClientEventParams) => string | undefined type ECSSREventOn = `on${Capitalize}` diff --git a/src/runtime/components/VChartServer.vue b/src/runtime/components/VChartServer.vue index 401a67d..fafa8d0 100644 --- a/src/runtime/components/VChartServer.vue +++ b/src/runtime/components/VChartServer.vue @@ -2,7 +2,7 @@ import { computed, unref, inject, ref } from 'vue' import type { InitOptions, Option, Theme } from '../types' import { THEME_KEY, INIT_OPTIONS_KEY } from '../utils/injection' -import type { VChartIsland } from '#components' +import type VChartIsland from './VChartLight.vue' const defaultTheme = inject(THEME_KEY, null) const defaultInitOptions = inject(INIT_OPTIONS_KEY, null) diff --git a/tsconfig.json b/tsconfig.json index 398c058..084dd91 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "./.nuxt/tsconfig.json", - "exclude": ["dist", "node_modules", "playground"] + "exclude": ["dist", "node_modules", "playground", "docs"] }