From 0ff2d0e1d4e64cbfd7fa3ccfef585336294f2ecb Mon Sep 17 00:00:00 2001 From: gpbl Date: Sat, 2 Mar 2024 12:06:03 -0500 Subject: [PATCH] Update config Signed-off-by: gpbl --- README.md | 2 +- website/next.config.mjs | 2 +- website/tsconfig.json | 28 ++++++++++++++++++++++------ 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2a538bbdd5..f492623c9e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ import "react-day-picker/style.css"; export function App() { const [selected, setSelected] = React.useState(); - return ; + return ; } ``` diff --git a/website/next.config.mjs b/website/next.config.mjs index b3efc21d22..ea780304e5 100644 --- a/website/next.config.mjs +++ b/website/next.config.mjs @@ -4,7 +4,7 @@ const nextConfig = { reactStrictMode: true, distDir: "build", cleanDistDir: true, - output: "export", + output: process.env.NODE_ENV === "production" ? "export" : undefined, }; export default nextConfig; diff --git a/website/tsconfig.json b/website/tsconfig.json index 47d64feb05..0ff49b1b9c 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -1,6 +1,10 @@ { "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -17,10 +21,19 @@ "name": "next" } ], - "types": ["node", "jest", "@testing-library/jest-dom", "./mdx.d.ts"], + "types": [ + "node", + "jest", + "@testing-library/jest-dom", + "./mdx.d.ts" + ], "paths": { - "@/test/*": ["../test/*"], - "@/*": ["./*"] + "@/test/*": [ + "../test/*" + ], + "@/*": [ + "./*" + ] } }, "include": [ @@ -29,7 +42,10 @@ "**/*.tsx", ".next/types/**/*.ts", "next.config.mjs", - "typedoc.mjs" + "typedoc.mjs", + "build/types/**/*.ts" ], - "exclude": ["node_modules"] + "exclude": [ + "node_modules" + ] }