Skip to content

Commit

Permalink
add experimentalDecorators
Browse files Browse the repository at this point in the history
  • Loading branch information
mathysth committed Mar 16, 2024
1 parent 417a6c9 commit 48be5a1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
2 changes: 2 additions & 0 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"strict": true,
"target": "ES2022",
"types": ["bun"]
Expand Down
4 changes: 3 additions & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"moduleDetection": "force",
"strict": true,
"noUncheckedIndexedAccess": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"moduleResolution": "Bundler",
"module": "ES2022",
"noEmit": true,
Expand All @@ -22,7 +24,7 @@
"@tests/*": ["./src/tests/*"],
"@utils/*": ["./src/utils/*"]
},
"types": ["bun", "node", "reflect-metadata"]
"types": ["bun", "node"]
},
"include": ["src"],
"exclude": ["node_modules"]
Expand Down
2 changes: 2 additions & 0 deletions packages/hono-openapi-adapter/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "ES2022",
"types": ["bun"]
}
Expand Down
2 changes: 2 additions & 0 deletions packages/prisma-adapter/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"skipLibCheck": true,
"strict": true,
"target": "ES2022",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"types": ["bun"]
}
}
26 changes: 10 additions & 16 deletions sample/hono-hello-world/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
{
"compilerOptions": {
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"lib": ["ES2022"],
"target": "ES2022",
"module": "ES2022",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,

/* Linting */
"moduleResolution": "bundler",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"strict": true,
"types": ["reflect-metadata"],
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"paths": {
"@app/*": ["./src/*"],
"@start/*": ["./src/start/*"]
}
}
},
"types": ["bun", "reflect-metadata"],
},
}

0 comments on commit 48be5a1

Please sign in to comment.