Skip to content

Commit c779b59

Browse files
committed
fix: rename package to hianime-v2 and implement ncc bundling for vercel
1 parent c258fa1 commit c779b59

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
id: meta
3535
uses: docker/metadata-action@v5
3636
with:
37-
images: ghcr.io/${{ github.repository_owner }}/hianime-api
37+
images: ghcr.io/${{ github.repository_owner }}/hianime-v2
3838
tags: |
3939
type=semver,pattern={{version}}
4040
type=semver,pattern={{major}}.{{minor}}

bun.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "hianime-api",
3-
"version": "2.1.0",
2+
"name": "hianime-v2",
3+
"version": "2.2.0",
44
"type": "module",
55
"repository": {
66
"type": "git",
@@ -24,7 +24,7 @@
2424
"test:jest": "NODE_OPTIONS='--experimental-vm-modules' jest",
2525
"test:all": "bun run test && bun run test:jest",
2626
"clean": "rm -rf dist node_modules/.cache",
27-
"vercel-build": "bun build api/index.ts --outfile api/index.js --target node"
27+
"vercel-build": "ncc build api/index.ts -o api"
2828
},
2929
"dependencies": {
3030
"@hono/node-server": "^1.8.2",
@@ -37,6 +37,7 @@
3737
"@types/node": "^25.5.0",
3838
"@typescript-eslint/eslint-plugin": "^7.0.0",
3939
"@typescript-eslint/parser": "^7.0.0",
40+
"@vercel/ncc": "^0.38.4",
4041
"@vitest/ui": "^4.1.1",
4142
"bun-types": "^1.3.11",
4243
"eslint": "^8.57.0",

0 commit comments

Comments
 (0)