Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
Signed-off-by: gpbl <io@gpbl.dev>
  • Loading branch information
gpbl committed Mar 2, 2024
1 parent 6b9809c commit 0ff2d0e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import "react-day-picker/style.css";

export function App() {
const [selected, setSelected] = React.useState<Date>();
return <DayPicker selected={selected} onSelect={spetSelected} />;
return <DayPicker selected={selected} onSelect={selected} />;
}
```

Expand Down
2 changes: 1 addition & 1 deletion website/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
28 changes: 22 additions & 6 deletions website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -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": [
Expand All @@ -29,7 +42,10 @@
"**/*.tsx",
".next/types/**/*.ts",
"next.config.mjs",
"typedoc.mjs"
"typedoc.mjs",
"build/types/**/*.ts"
],
"exclude": ["node_modules"]
"exclude": [
"node_modules"
]
}

0 comments on commit 0ff2d0e

Please sign in to comment.