fix: rename package to hianime-v2 and implement ncc bundling for vercel

This commit is contained in:
RY4N
2026-03-27 01:51:35 +06:00
parent c258fa1d41
commit c779b59181
3 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "hianime-api",
"version": "2.1.0",
"name": "hianime-v2",
"version": "2.2.0",
"type": "module",
"repository": {
"type": "git",
@@ -24,7 +24,7 @@
"test:jest": "NODE_OPTIONS='--experimental-vm-modules' jest",
"test:all": "bun run test && bun run test:jest",
"clean": "rm -rf dist node_modules/.cache",
"vercel-build": "bun build api/index.ts --outfile api/index.js --target node"
"vercel-build": "ncc build api/index.ts -o api"
},
"dependencies": {
"@hono/node-server": "^1.8.2",
@@ -37,6 +37,7 @@
"@types/node": "^25.5.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"@vercel/ncc": "^0.38.4",
"@vitest/ui": "^4.1.1",
"bun-types": "^1.3.11",
"eslint": "^8.57.0",