From 96b6cf39ba023eaa31f17b30c67a1766b05e7862 Mon Sep 17 00:00:00 2001 From: gpbl Date: Wed, 1 Nov 2023 11:26:32 -0500 Subject: [PATCH] Fix build Signed-off-by: gpbl --- docs/components/PropsTable/PropsTable.tsx | 1 - docs/package.json | 5 +++-- docs/pages/reference/props.mdx | 6 ------ package.json | 1 + 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/docs/components/PropsTable/PropsTable.tsx b/docs/components/PropsTable/PropsTable.tsx index c2530496b5..2fd3124eb6 100644 --- a/docs/components/PropsTable/PropsTable.tsx +++ b/docs/components/PropsTable/PropsTable.tsx @@ -9,7 +9,6 @@ type Reflection = | 'variables'; function lookupByName(reflection: Reflection, name: string) { - // @ts-expect-error - I don't know how to type this return api[reflection].find((item) => item.name === name); } diff --git a/docs/package.json b/docs/package.json index ec6c3c7cb7..add297854a 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,9 +5,10 @@ "description": "", "main": "index.js", "scripts": { - "api": "pnpm typedoc && pnpm typedoc-json-parser --json generated/api-parsed.json && node scripts/api.mjs", "dev": "next dev -p 2001", - "build": "next build", + "api-docs": "pnpm typedoc && pnpm typedoc-json-parser --json generated/api-parsed.json && node scripts/api.mjs", + "prebuild": "pnpm run build:api-docs", + "build": "pnpm next build", "start": "next start", "lint": "next lint", "test": "jest", diff --git a/docs/pages/reference/props.mdx b/docs/pages/reference/props.mdx index e09a6ed7e5..f85146f721 100644 --- a/docs/pages/reference/props.mdx +++ b/docs/pages/reference/props.mdx @@ -9,9 +9,3 @@ import { Callout } from 'nextra/components'; the maintainers in the [discussion page](https://github.com/gpbl/react-day-picker/discussions) on GitHub. - -## DayPickerProps - -import Props from '../../generated/props.mdx'; - - diff --git a/package.json b/package.json index 1df0f6d552..d96871e110 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "prepublish": "pnpm build", "prebuild": "rimraf dist/*", "build": "rollup -c", + "build-docs": "pnpm run build && pnpm --filter docs run build", "build-watch": "rollup -c -w", "lint": "eslint .", "test": "jest",