feat(cli): upgrade next and elysia (#533)

This commit is contained in:
Aman Varshney
2025-08-24 23:29:15 +05:30
committed by GitHub
parent d28a2daea4
commit da2bef7088
8 changed files with 34 additions and 51 deletions

View File

@@ -10,20 +10,20 @@ export const PKG_ROOT = path.join(distPath, "../");
export const DEFAULT_CONFIG_BASE = {
projectName: "my-better-t-app",
relativePath: "my-better-t-app",
frontend: ["tanstack-router"] as const,
database: "sqlite" as const,
orm: "drizzle" as const,
frontend: ["tanstack-router"],
database: "sqlite",
orm: "drizzle",
auth: true,
addons: ["turborepo"] as const,
examples: [] as const,
addons: ["turborepo"],
examples: [],
git: true,
install: true,
dbSetup: "none" as const,
backend: "hono" as const,
runtime: "bun" as const,
api: "trpc" as const,
webDeploy: "none" as const,
serverDeploy: "none" as const,
dbSetup: "none",
backend: "hono",
runtime: "bun",
api: "trpc",
webDeploy: "none",
serverDeploy: "none",
} as const;
export function getDefaultConfig(): ProjectConfig {
@@ -40,8 +40,8 @@ export function getDefaultConfig(): ProjectConfig {
export const DEFAULT_CONFIG = getDefaultConfig();
export const dependencyVersionMap = {
"better-auth": "^1.3.4",
"@better-auth/expo": "^1.3.4",
"better-auth": "^1.3.7",
"@better-auth/expo": "^1.3.7",
"drizzle-orm": "^0.44.2",
"drizzle-kit": "^0.31.2",
@@ -68,7 +68,7 @@ export const dependencyVersionMap = {
"@tauri-apps/cli": "^2.4.0",
"@biomejs/biome": "^2.2.0",
oxlint: "^1.8.0",
oxlint: "^1.12.0",
husky: "^9.1.7",
"lint-staged": "^16.1.2",
@@ -78,11 +78,11 @@ export const dependencyVersionMap = {
"@types/bun": "^1.2.6",
"@elysiajs/node": "^1.2.6",
"@elysiajs/node": "^1.3.1",
"@elysiajs/cors": "^1.2.0",
"@elysiajs/cors": "^1.3.3",
"@elysiajs/trpc": "^1.1.0",
elysia: "^1.2.25",
elysia: "^1.3.20",
"@hono/node-server": "^1.14.4",
"@hono/trpc-server": "^0.4.0",
@@ -104,13 +104,13 @@ export const dependencyVersionMap = {
"@ai-sdk/svelte": "^3.0.9",
"@ai-sdk/react": "^2.0.9",
"@orpc/server": "^1.5.0",
"@orpc/client": "^1.5.0",
"@orpc/tanstack-query": "^1.5.0",
"@orpc/server": "^1.8.4",
"@orpc/client": "^1.8.4",
"@orpc/tanstack-query": "^1.8.4",
"@trpc/tanstack-react-query": "^11.4.2",
"@trpc/server": "^11.4.2",
"@trpc/client": "^11.4.2",
"@trpc/tanstack-react-query": "^11.5.0",
"@trpc/server": "^11.5.0",
"@trpc/client": "^11.5.0",
convex: "^1.25.4",
"@convex-dev/react-query": "^0.0.0-alpha.8",
@@ -124,8 +124,8 @@ export const dependencyVersionMap = {
"@tanstack/vue-query-devtools": "^5.83.0",
"@tanstack/vue-query": "^5.83.0",
"@tanstack/react-query-devtools": "^5.80.5",
"@tanstack/react-query": "^5.80.5",
"@tanstack/react-query-devtools": "^5.85.5",
"@tanstack/react-query": "^5.85.5",
"@tanstack/solid-query": "^5.75.0",
"@tanstack/solid-query-devtools": "^5.75.0",

View File

@@ -1,7 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
typedRoutes: true,
};
export default nextConfig;

View File

@@ -8,7 +8,7 @@
"start": "next start"
},
"dependencies": {
"next": "15.3.0",
"next": "15.5.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"dotenv": "^17.2.1"

View File

@@ -17,7 +17,7 @@
],
{{/if}}
"devDependencies": {
"tsdown": "^0.12.9",
"tsdown": "^0.14.1",
"typescript": "^5.8.2"
}
}

View File

@@ -1,5 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {};
const nextConfig: NextConfig = {
typedRoutes: true,
};
export default nextConfig;

View File

@@ -5,8 +5,7 @@
"scripts": {
"dev": "next dev --turbopack --port=3001",
"build": "next build",
"start": "next start",
"lint": "next lint"
"start": "next start"
},
"dependencies": {
"radix-ui": "^1.4.2",
@@ -14,7 +13,7 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.487.0",
"next": "15.3.0",
"next": "15.5.0",
"next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",

View File

@@ -25,7 +25,7 @@ export default function Header() {
{{#if (includes examples "ai")}}
{ to: "/ai", label: "AI Chat" },
{{/if}}
];
] as const;
return (
<div>

View File

@@ -2731,20 +2731,6 @@ describe("create-better-t-stack smoke", () => {
});
};
const runCodegen = async (pm: "bun" | "pnpm" | "npm", cwd: string) => {
if (pm === "bun")
return execa("bunx", ["convex", "codegen"], {
cwd,
stdio: "inherit",
});
if (pm === "pnpm")
return execa("pnpm", ["dlx", "convex", "codegen"], {
cwd,
stdio: "inherit",
});
return execa("npx", ["convex", "codegen"], { cwd, stdio: "inherit" });
};
for (const dirName of projectNames) {
it(`builds ${dirName}`, async () => {
const projectDir = join(workdir, dirName);
@@ -2801,10 +2787,6 @@ describe("create-better-t-stack smoke", () => {
);
return;
}
consola.start("Running Convex codegen in packages/backend ...");
const backendDir = join(projectDir, "packages", "backend");
const codegenRes = await runCodegen(pm, backendDir);
expect(codegenRes.exitCode).toBe(0);
}
if (scripts.build) {