diff --git a/.changeset/typescript6-declarations.md b/.changeset/typescript6-declarations.md new file mode 100644 index 0000000..170ebb4 --- /dev/null +++ b/.changeset/typescript6-declarations.md @@ -0,0 +1,5 @@ +--- +'@lglab/react-qr-code': patch +--- + +Fix TypeScript declaration output when building with TypeScript 6: disable `vite-plugin-dts` type rollup (API Extractor used an older TS and emitted an empty declaration file). Update `types` / `exports.types` to `./dist/src/index.d.ts`. diff --git a/apps/docs/package.json b/apps/docs/package.json index 6e1edaf..d0e79c8 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -27,28 +27,28 @@ "@radix-ui/react-toggle": "^1.1.10", "@radix-ui/react-tooltip": "^1.2.8", "@uiw/react-color": "^2.9.6", - "@vercel/analytics": "^1.6.1", + "@vercel/analytics": "^2.0.1", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "date-fns": "^4.1.0", - "lucide-react": "^0.577.0", - "next": "16.1.7", + "lucide-react": "^1.7.0", + "next": "16.2.1", "next-themes": "^0.4.6", "prism-react-renderer": "^2.4.1", "react": "^19.2.4", "react-dom": "^19.2.4", - "react-hook-form": "^7.71.2", + "react-hook-form": "^7.72.0", "react-icons": "^5.6.0", "tailwind-merge": "^3.5.0", "tailwindcss-animate": "^1.0.7" }, "devDependencies": { - "@tailwindcss/postcss": "^4.2.1", + "@tailwindcss/postcss": "^4.2.2", "@types/node": "^25.5.0", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "postcss": "^8.5.8", - "tailwindcss": "^4.2.1", - "typescript": "^5.9.3" + "tailwindcss": "^4.2.2", + "typescript": "^6.0.2" } } \ No newline at end of file diff --git a/apps/docs/src/app/layout.tsx b/apps/docs/src/app/layout.tsx index 76b905a..ad2f8fa 100644 --- a/apps/docs/src/app/layout.tsx +++ b/apps/docs/src/app/layout.tsx @@ -71,11 +71,6 @@ export default function RootLayout({ data-website-id={process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID} /> )} -