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:
parent
20b67e1402
commit
b95bb570fb
|
|
@ -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',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"framework": "hono",
|
||||
"buildCommand": "pnpm run build:vercel",
|
||||
"outputDirectory": "dist",
|
||||
"github": {
|
||||
"silent": true
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue