Browse Source

feat: add bun-types support in TypeScript configuration

Enhance TypeScript configuration in nuxt.config.ts to include 'bun-types' in both the main and nitro sections. Update package.json to add 'bun-types' as a dependency.
main
npmrun 2 days ago
parent
commit
a8f4cfbeae
  1. 8
      nuxt.config.ts
  2. 1
      package.json

8
nuxt.config.ts

@ -7,10 +7,18 @@ export default defineNuxtConfig({
fonts: false
},
devtools: { enabled: true },
typescript: {
tsConfig: {
compilerOptions: {
types: ['bun-types'],
}
}
},
nitro: {
typescript: {
tsConfig: {
compilerOptions: {
types: ['bun-types'],
resolvePackageJsonExports: true,
resolvePackageJsonImports: true,
baseUrl: './',

1
package.json

@ -43,6 +43,7 @@
"@types/better-sqlite3": "^7.6.13",
"@types/multer": "2.1.0",
"@types/pg": "8.20.0",
"bun-types": "^1.3.12",
"drizzle-kit": "0.31.10",
"tsx": "4.21.0",
"typescript": "6.0.2"

Loading…
Cancel
Save