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.
This commit is contained in:
DIYgod 2025-08-10 23:00:37 +08:00
parent 20b67e1402
commit b95bb570fb
No known key found for this signature in database
3 changed files with 2 additions and 11 deletions

View File

@ -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',
},

View File

@ -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",

View File

@ -1,9 +0,0 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"framework": "hono",
"buildCommand": "pnpm run build:vercel",
"outputDirectory": "dist",
"github": {
"silent": true
}
}