mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-28 13:58:26 +08:00
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:
+1
-1
@@ -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',
|
||||
},
|
||||
|
||||
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user