From b95bb570fb0e45bab129a05b2f2fcb215815b5bd Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sun, 10 Aug 2025 23:00:37 +0800 Subject: [PATCH] chore: update build script and remove unused Vercel configuration - Modified the build script in package.json to rename the output file from server.js to index.js. - Removed the vercel.json configuration file as it is no longer needed. - Updated ESLint configuration to reflect changes in file references. --- eslint.config.mjs | 2 +- package.json | 2 +- vercel.json | 9 --------- 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 vercel.json diff --git a/eslint.config.mjs b/eslint.config.mjs index 01dbe3597..01a81faf6 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -246,7 +246,7 @@ unicorn.configs.recommended, 'yml/no-empty-mapping-value': 'off', }, }, { - files: ['.puppeteerrc.cjs', 'api/vercel.ts'], + files: ['.puppeteerrc.cjs'], rules: { '@typescript-eslint/no-require-imports': 'off', }, diff --git a/package.json b/package.json index 5e901d0b8..db812e124 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ ], "scripts": { "build": "tsx scripts/workflow/build-routes.ts && tsdown", - "build:vercel": "tsx scripts/workflow/build-routes.ts && tsdown --config ./tsdown-vercel.config.ts", + "build:vercel": "tsx scripts/workflow/build-routes.ts && tsdown --config ./tsdown-vercel.config.ts && mv dist/server.js dist/index.js", "build:docs": "tsx scripts/workflow/build-docs.ts", "dev": "cross-env NODE_ENV=dev tsx watch --inspect --clear-screen=false lib/index.ts", "dev:cache": "cross-env NODE_ENV=production tsx watch --clear-screen=false lib/index.ts", diff --git a/vercel.json b/vercel.json deleted file mode 100644 index 0202ea8e8..000000000 --- a/vercel.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$schema": "https://openapi.vercel.sh/vercel.json", - "framework": "hono", - "buildCommand": "pnpm run build:vercel", - "outputDirectory": "dist", - "github": { - "silent": true - } -}