Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
20923e0
chore(deps-dev): bump vite from 8.0.0 to 8.0.1 in the vite-vitest group
dependabot[bot] Mar 21, 2026
091d203
Merge pull request #488 from LGLabGreg/dependabot/npm_and_yarn/next/v…
github-actions[bot] Mar 21, 2026
ae264f5
chore(deps-dev): bump the tailwind group with 2 updates
dependabot[bot] Mar 21, 2026
0ee6482
Merge pull request #489 from LGLabGreg/dependabot/npm_and_yarn/next/t…
github-actions[bot] Mar 21, 2026
a8d2429
chore(deps): bump react-hook-form in the react group
dependabot[bot] Mar 28, 2026
266d7cf
Merge pull request #491 from LGLabGreg/dependabot/npm_and_yarn/next/r…
github-actions[bot] Mar 28, 2026
e85f019
chore(deps-dev): bump the oxc group with 2 updates
dependabot[bot] Mar 28, 2026
4f5baa8
Merge pull request #493 from LGLabGreg/dependabot/npm_and_yarn/next/o…
github-actions[bot] Mar 28, 2026
24b9e84
chore(deps-dev): bump the vite-vitest group with 3 updates
dependabot[bot] Mar 28, 2026
a038d80
Merge pull request #494 from LGLabGreg/dependabot/npm_and_yarn/next/v…
github-actions[bot] Mar 28, 2026
420a283
Merge branch 'main' of github.com-lglab:LGLabGreg/react-qr-code into …
LGLabGreg Mar 29, 2026
3216427
chore: update dependencies and fix TS 6 moduleResolution
LGLabGreg Mar 29, 2026
4edf06b
fix(react-qr-code): correct .d.ts emit with TypeScript 6
LGLabGreg Mar 29, 2026
b62a40d
chore(docs): remove AdSense script; refresh next-env.d.ts
LGLabGreg Mar 29, 2026
db6d6b6
chore: add changeset for TypeScript 6 declaration fix
LGLabGreg Mar 29, 2026
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
5 changes: 5 additions & 0 deletions .changeset/typescript6-declarations.md
Original file line number Diff line number Diff line change
@@ -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`.
14 changes: 7 additions & 7 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
5 changes: 0 additions & 5 deletions apps/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ export default function RootLayout({
data-website-id={process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID}
/>
)}
<Script
async
src={`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${process.env.NEXT_PUBLIC_GOOGLE_ADS_CLIENT_ID}`}
crossOrigin='anonymous'
/>
</body>
</html>
)
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@
"@changesets/cli": "^2.30.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/jsdom": "^28.0.0",
"@types/jsdom": "^28.0.1",
"@types/node": "^25.5.0",
"@vitejs/plugin-react": "^6.0.1",
"@vitest/coverage-v8": "4.1.0",
"@vitest/coverage-v8": "4.1.2",
"concurrently": "^9.2.1",
"husky": "^9.1.7",
"jsdom": "^29.0.0",
"jsdom": "^29.0.1",
"lint-staged": "^16.4.0",
"oxfmt": "^0.41.0",
"oxlint": "^1.56.0",
"oxfmt": "^0.42.0",
"oxlint": "^1.57.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"typescript": "~5.9.3",
"vite": "^8.0.0",
"vitest": "^4.1.0"
"typescript": "~6.0.2",
"vite": "^8.0.3",
"vitest": "^4.1.2"
}
}
10 changes: 5 additions & 5 deletions packages/react-qr-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
"scripts": {
"build": "tsc -b && vite build"
},
"types": "./dist/index.d.ts",
"types": "./dist/src/index.d.ts",
"main": "./dist/index.es.js",
"module": "./dist/index.es.js",
"exports": {
".": {
"import": "./dist/index.es.js",
"types": "./dist/index.d.ts"
"types": "./dist/src/index.d.ts"
}
},
"files": [
Expand All @@ -52,12 +52,12 @@
"@types/node": "^25.5.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.0",
"@vitejs/plugin-react": "^6.0.1",
"globals": "^17.4.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"typescript": "~5.9.3",
"vite": "^8.0.0",
"typescript": "~6.0.2",
"vite": "^8.0.3",
"vite-plugin-dts": "^4.5.4"
}
}
2 changes: 1 addition & 1 deletion packages/react-qr-code/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-qr-code/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
export default defineConfig({
plugins: [
dts({
rollupTypes: true,
// rollupTypes uses API Extractor with an older bundled TS than the project (TS 6); it emitted empty `export { }`.
rollupTypes: false,
}),
],
build: {
Expand Down
Loading