Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: gpbl <[email protected]>
  • Loading branch information
gpbl committed Nov 1, 2023
1 parent 9e4cfed commit 96b6cf3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion docs/components/PropsTable/PropsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
5 changes: 3 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 0 additions & 6 deletions docs/pages/reference/props.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</Callout>

## DayPickerProps

import Props from '../../generated/props.mdx';

<Props />
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 96b6cf3

Please sign in to comment.