diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index c2f8686..13cd122 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -32,8 +32,8 @@ jobs: env: NODE_ENV: production - # - name: Checking type consistency - # run: pnpm run typecheck:docs + - name: Checking type consistency + run: pnpm run typecheck:docs - name: Building the source code run: pnpm build:docs - name: Creating the artifact diff --git a/.husky/pre-commit b/.husky/pre-commit index 83536cf..bde9bbe 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,2 @@ NODE_ENV="production" pnpm run lint:_all -pnpm run typecheck # :_all +pnpm run typecheck:_all diff --git a/packages/docs/package.json b/packages/docs/package.json index f29297e..05df845 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -16,6 +16,7 @@ "devDependencies": { "@byloth/eslint-config-nuxt": "^2.8.2", "@fortawesome/fontawesome-free": "^6.6.0", + "@types/node": "^20.14.15", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "@vitejs/plugin-vue": "^5.1.2", diff --git a/packages/docs/src/types/vitepress.d.ts b/packages/docs/src/types/vitepress.d.ts index 82c881c..d7d786a 100644 --- a/packages/docs/src/types/vitepress.d.ts +++ b/packages/docs/src/types/vitepress.d.ts @@ -13,3 +13,10 @@ declare module "@vitepress/theme/../shared.js" { export const EXTERNAL_URL_RE: RegExp; } + +declare module "@vitepress/theme/components/*.vue" +{ + import type { DefineComponent } from "vue"; + + export default { } satisfies DefineComponent; +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3d55760..786b34b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -79,6 +79,9 @@ importers: '@fortawesome/fontawesome-free': specifier: ^6.6.0 version: 6.6.0 + '@types/node': + specifier: ^20.14.15 + version: 20.14.15 '@typescript-eslint/eslint-plugin': specifier: ^7.18.0 version: 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)