Skip to content

Commit

Permalink
fix: make hono as external to build
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Jul 2, 2024
1 parent 19bd7fe commit e2b0a40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"scripts": {
"test": "node --expose-gc ./node_modules/.bin/jest",
"build": "tsup",
"build": "tsup --external hono",
"watch": "tsup --watch",
"postbuild": "publint",
"prerelease": "yarn build && yarn test",
Expand Down Expand Up @@ -88,4 +88,4 @@
"tsup": "^7.2.0",
"typescript": "^5.3.2"
}
}
}
4 changes: 2 additions & 2 deletions test/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,9 @@ describe('Error handling', () => {
expect(res.text).toBe('Custom Error!')
})

it('Should return 500 response - PURGE method', async () => {
it('Should return 404 response - PURGE method', async () => {
const res = await request(server).purge('/')
expect(res.status).toBe(500)
expect(res.status).toBe(404)
})
})

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2924,10 +2924,10 @@ hexoid@^1.0.0:
resolved "https://registry.yarnpkg.com/hexoid/-/hexoid-1.0.0.tgz#ad10c6573fb907de23d9ec63a711267d9dc9bc18"
integrity sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==

hono@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/hono/-/hono-4.0.3.tgz#042ec90a6b784f85ee31c9dd8db6173d3588afdc"
integrity sha512-LLZFvqiksAO6Hf080XCUbsEjRxIrqEoiIN1HUzL0xtYP+BZUxGfeWg8yB5Dvp/sI7T0Lt4XdtGTGLwpIzAsl8w==
hono@^4.4.10:
version "4.4.10"
resolved "https://registry.yarnpkg.com/hono/-/hono-4.4.10.tgz#f980feea3b74dd4edc9249a0726165df13c50e16"
integrity sha512-z6918u9rXRU5CCisMHd2uUVoQXcNyUrUMmYY7VH10v4HJG7+hqgMK/G8YNTd13C6s4rBfzF09iz8VpOip9qG3A==

hosted-git-info@^2.1.4:
version "2.8.9"
Expand Down

0 comments on commit e2b0a40

Please sign in to comment.