From c258fa1d41a5587233cd53840d6b758d1c7f5885 Mon Sep 17 00:00:00 2001 From: RY4N Date: Fri, 27 Mar 2026 01:46:56 +0600 Subject: [PATCH] fix: rename ghcr package to hianime-v2 and implement vercel bubbling --- .github/workflows/package.yml | 2 +- package.json | 5 +++-- vercel.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 16ecf92..8faae9f 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -34,7 +34,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ghcr.io/${{ github.repository }} + images: ghcr.io/${{ github.repository_owner }}/hianime-api tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} diff --git a/package.json b/package.json index 15e33d2..d7455a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hianime-api", - "version": "2.0.1", + "version": "2.1.0", "type": "module", "repository": { "type": "git", @@ -23,7 +23,8 @@ "test:ui": "vitest --ui", "test:jest": "NODE_OPTIONS='--experimental-vm-modules' jest", "test:all": "bun run test && bun run test:jest", - "clean": "rm -rf dist node_modules/.cache" + "clean": "rm -rf dist node_modules/.cache", + "vercel-build": "bun build api/index.ts --outfile api/index.js --target node" }, "dependencies": { "@hono/node-server": "^1.8.2", diff --git a/vercel.json b/vercel.json index 59cb1ca..5c4bfcd 100644 --- a/vercel.json +++ b/vercel.json @@ -4,7 +4,7 @@ "rewrites": [ { "source": "/(.*)", - "destination": "/api" + "destination": "/api/index.js" } ] } \ No newline at end of file