Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Generate route types before type-checking

This reference points into .next/, which is gitignored and only generated by next dev, next build, or next typegen. In the checked workflow (.github/workflows/nextjs-ci.yml), npm run type-check runs before npm run build and there is no next typegen step, so a clean checkout can fail tsc --noEmit with TS6053: File '.next/types/routes.d.ts' not found. Remove this generated reference from the committed file or generate the Next route types before running standalone type-checks.

Useful? React with 👍 / 👎.


// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"next": "14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"next-themes": "^0.3.0",
"next": "15.5.19",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"next-themes": "^0.4.6",
"geist": "^1.3.1",
"lucide-react": "^0.436.0",
"clsx": "^2.1.1",
"tailwind-merge": "^2.5.2",
"class-variance-authority": "^0.7.0",
"framer-motion": "^11.5.0",
"sonner": "^1.5.0",
"cmdk": "^1.0.0",
"vaul": "^0.9.4",
"cmdk": "^1.1.1",
"vaul": "^1.1.2",
"recharts": "^2.12.7",
"zod": "^3.23.8",
"@radix-ui/react-slot": "^1.1.0",
Expand All @@ -49,14 +49,14 @@
"devDependencies": {
"typescript": "^5.5.4",
"@types/node": "^22.5.1",
"@types/react": "^18.3.4",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"tailwindcss": "^3.4.10",
"tailwindcss-animate": "^1.0.7",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.45",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.5",
"eslint-config-next": "15.5.19",
"vitest": "^2.0.5",
"@vitest/ui": "^2.0.5",
"@vitest/coverage-v8": "^2.0.5",
Expand Down
1 change: 1 addition & 0 deletions src/app/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default function Error({
variant="outline"
size="default"
>
{/* eslint-disable-next-line @next/next/no-html-link-for-pages */}
<a href="/">Go home</a>
</Button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/providers/theme-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import { ThemeProvider as NextThemesProvider } from "next-themes";
import type { ThemeProviderProps } from "next-themes/dist/types";
import type { ThemeProviderProps } from "next-themes";

/**
* Wraps next-themes with sensible defaults. We attach the theme to a
Expand Down
30 changes: 24 additions & 6 deletions 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 @@ -12,11 +16,25 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [{ "name": "next" }],
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
"@/*": [
"./src/*"
]
},
"target": "ES2017"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
Loading