Skip to content

Commit

Permalink
chore: updates tsconfig.json (#1651)
Browse files Browse the repository at this point in the history
Co-authored-by: juliusmarminge <[email protected]>
  • Loading branch information
mattpocock and juliusmarminge committed Nov 8, 2023
1 parent ea47528 commit 4834ec3
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 36 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-jobs-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

tidy up and modernize tsconfig
4 changes: 2 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"sort-package-json": "^2.4.1"
},
"devDependencies": {
"@auth/drizzle-adapter": "^0.3.2",
"@auth/drizzle-adapter": "^0.3.5",
"@next-auth/prisma-adapter": "^1.0.7",
"@planetscale/database": "^1.11.0",
"@prisma/client": "^5.1.1",
Expand All @@ -79,7 +79,7 @@
"drizzle-kit": "^0.19.13",
"drizzle-orm": "^0.28.5",
"next": "^14.0.0",
"next-auth": "^4.23.1",
"next-auth": "^4.24.4",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.5.1",
"prisma": "^4.14.0",
Expand Down
4 changes: 2 additions & 2 deletions cli/src/installers/dependencyVersionMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/
export const dependencyVersionMap = {
// NextAuth.js
"next-auth": "^4.23.0",
"next-auth": "^4.24.4",
"@next-auth/prisma-adapter": "^1.0.7",
"@auth/drizzle-adapter": "^0.3.2",
"@auth/drizzle-adapter": "^0.3.5",

// Prisma
prisma: "^5.1.1",
Expand Down
33 changes: 20 additions & 13 deletions cli/template/base/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
{
"compilerOptions": {
"target": "es2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"checkJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
/* Base Options: */
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,

/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
"checkJs": true,

/* Bundled projects */
"lib": ["dom", "dom.iterable", "ES2022"],
"noEmit": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "preserve",
"plugins": [{ "name": "next" }],
"incremental": true,
"noUncheckedIndexedAccess": true,

/* Path Aliases */
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
},
"plugins": [{ "name": "next" }]
}
},
"include": [
".eslintrc.cjs",
Expand Down
38 changes: 19 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4834ec3

Please sign in to comment.