Skip to content

Commit

Permalink
chore: update deps (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored May 26, 2024
1 parent 6b672e0 commit 499052c
Show file tree
Hide file tree
Showing 23 changed files with 4,442 additions and 3,793 deletions.
56 changes: 28 additions & 28 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,49 +50,49 @@
"pub:release": "pnpm build && npm publish"
},
"dependencies": {
"@clack/core": "^0.3.2",
"@clack/core": "^0.3.4",
"@clack/prompts": "^0.6.3",
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
"chalk": "5.2.0",
"commander": "^10.0.0",
"execa": "^7.1.1",
"fs-extra": "^11.1.1",
"commander": "^10.0.1",
"execa": "^7.2.0",
"fs-extra": "^11.2.0",
"gradient-string": "^2.0.2",
"ora": "6.3.1",
"sort-package-json": "^2.10.0"
},
"devDependencies": {
"@auth/drizzle-adapter": "^0.7.0",
"@auth/prisma-adapter": "^1.4.0",
"@auth/drizzle-adapter": "^1.1.0",
"@auth/prisma-adapter": "^1.6.0",
"@libsql/client": "^0.6.0",
"@planetscale/database": "^1.16.0",
"@prisma/adapter-planetscale": "^5.10.2",
"@prisma/client": "^5.10.2",
"@planetscale/database": "^1.18.0",
"@prisma/adapter-planetscale": "^5.14.0",
"@prisma/client": "^5.14.0",
"@t3-oss/env-nextjs": "^0.10.1",
"@tanstack/react-query": "^5.25.0",
"@trpc/client": "next",
"@trpc/next": "next",
"@trpc/react-query": "next",
"@trpc/server": "next",
"@tanstack/react-query": "^5.39.0",
"@trpc/client": "11.0.0-rc.377",
"@trpc/next": "11.0.0-rc.377",
"@trpc/react-query": "11.0.0-rc.377",
"@trpc/server": "11.0.0-rc.377",
"@types/fs-extra": "^11.0.4",
"@types/gradient-string": "^1.1.5",
"@types/gradient-string": "^1.1.6",
"@types/node": "^20.12.12",
"drizzle-kit": "^0.21.0",
"drizzle-orm": "^0.29.4",
"mysql2": "^3.9.1",
"next": "^14.2.1",
"next-auth": "^4.24.6",
"postgres": "^3.4.3",
"drizzle-kit": "^0.21.4",
"drizzle-orm": "^0.30.10",
"mysql2": "^3.9.7",
"next": "^14.2.3",
"next-auth": "^4.24.7",
"postgres": "^3.4.4",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"prisma": "^5.10.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"prisma": "^5.14.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"superjson": "^2.2.1",
"tailwindcss": "^3.4.1",
"tailwindcss": "^3.4.3",
"tsup": "^6.7.0",
"type-fest": "^3.7.0",
"typescript": "^5.4.2",
"zod": "^3.23.3"
"type-fest": "^3.13.1",
"typescript": "^5.4.5",
"zod": "^3.23.8"
}
}
29 changes: 14 additions & 15 deletions cli/src/installers/dependencyVersionMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,36 @@
*/
export const dependencyVersionMap = {
// NextAuth.js
"next-auth": "^4.24.6",
"@auth/prisma-adapter": "^1.4.0",
"@auth/drizzle-adapter": "^0.7.0",
"next-auth": "^4.24.7",
"@auth/prisma-adapter": "^1.6.0",
"@auth/drizzle-adapter": "^1.1.0",

// Prisma
prisma: "^5.10.2",
"@prisma/client": "^5.10.2",
"@prisma/adapter-planetscale": "^5.10.2",
prisma: "^5.14.0",
"@prisma/client": "^5.14.0",
"@prisma/adapter-planetscale": "^5.14.0",

// Drizzle
"drizzle-orm": "^0.29.4",
"drizzle-kit": "^0.21.0",
"drizzle-orm": "^0.30.10",
"drizzle-kit": "^0.21.4",
"eslint-plugin-drizzle": "^0.2.3",
mysql2: "^3.9.1",
"@planetscale/database": "^1.16.0",
postgres: "^3.4.3",
pg: "^8.11.3",
mysql2: "^3.9.7",
"@planetscale/database": "^1.18.0",
postgres: "^3.4.4",
"@libsql/client": "^0.6.0",

// TailwindCSS
tailwindcss: "^3.4.1",
tailwindcss: "^3.4.3",
postcss: "^8.4.34",
prettier: "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"prettier-plugin-tailwindcss": "^0.5.14",

// tRPC
"@trpc/client": "next",
"@trpc/server": "next",
"@trpc/react-query": "next",
"@trpc/next": "next",
"@tanstack/react-query": "^5.25.0",
"@tanstack/react-query": "^5.39.0",
superjson: "^2.2.1",
"server-only": "^0.0.1",
} as const;
Expand Down
2 changes: 0 additions & 2 deletions cli/src/installers/drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export const drizzleInstaller: Installer = ({
"drizzle-kit",
"eslint-plugin-drizzle",
];
if (databaseProvider === "planetscale") devPackages.push("mysql2");
if (databaseProvider === "postgres") devPackages.push("pg");

addPackageDependency({
projectDir,
Expand Down
4 changes: 2 additions & 2 deletions cli/template/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@t3-oss/env-nextjs": "^0.10.1",
"geist": "^1.3.0",
"next": "^14.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"zod": "^3.23.3"
},
"devDependencies": {
Expand Down
14 changes: 12 additions & 2 deletions cli/template/extras/src/server/auth-app/with-drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
import { db } from "~/server/db";
import { createTable } from "~/server/db/schema";
import {
accounts,
sessions,
users,
verificationTokens,
} from "~/server/db/schema";

/**
* Module augmentation for `next-auth` types. Allows us to add custom properties to the `session`
Expand Down Expand Up @@ -47,7 +52,12 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: DrizzleAdapter(db, createTable) as Adapter,
adapter: DrizzleAdapter(db, {
usersTable: users,
accountsTable: accounts,
sessionsTable: sessions,
verificationTokensTable: verificationTokens,
}) as Adapter,
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down
14 changes: 12 additions & 2 deletions cli/template/extras/src/server/auth-pages/with-drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
import { db } from "~/server/db";
import { createTable } from "~/server/db/schema";
import {
accounts,
sessions,
users,
verificationTokens,
} from "~/server/db/schema";

/**
* Module augmentation for `next-auth` types. Allows us to add custom properties to the `session`
Expand Down Expand Up @@ -48,7 +53,12 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: DrizzleAdapter(db, createTable) as Adapter,
adapter: DrizzleAdapter(db, {
usersTable: users,
accountsTable: accounts,
sessionsTable: sessions,
verificationTokensTable: verificationTokens,
}) as Adapter,
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@
"@typescript-eslint/parser": "^7.10.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-isaacscript": "^2.6.7",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"prettier": "^3.2.5",
"turbo": "1.13.3-canary.3",
"typescript": "^5.4.2"
"typescript": "^5.4.5"
}
}
Loading

0 comments on commit 499052c

Please sign in to comment.