Skip to content

Commit 989a9f4

Browse files
chore: Use Bun instead of yarn as a package manager
1 parent 4ce55d1 commit 989a9f4

File tree

82 files changed

+337
-16670
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+337
-16670
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
- [ ] Add tests
44
- [ ] Run tests
5-
- [ ] `yarn changeset` at the top of this repo and push the changeset
5+
- [ ] `bun changeset` at the top of this repo and push the changeset
66
- [ ] Follow [the contribution guide](https://github.com/honojs/middleware?tab=readme-ov-file#how-to-contribute)

.github/workflows/ci-ajv-validator.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20.x
20-
- run: yarn workspaces focus hono-middleware @hono/ajv-validator
21-
- run: yarn workspace @hono/ajv-validator build
22-
- run: yarn workspace @hono/ajv-validator publint
23-
- run: yarn workspace @hono/ajv-validator typecheck
24-
- run: yarn eslint packages/ajv-validator
25-
- run: yarn test --coverage --project @hono/ajv-validator
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --filter './' --filter './packages/ajv-validator'
19+
- run: bun --filter './packages/ajv-validator' build
20+
- run: bun --filter './packages/ajv-validator' publint
21+
- run: bun --filter './packages/ajv-validator' typecheck
22+
- run: bun eslint packages/ajv-validator
23+
- run: bun vitest --coverage --project @hono/ajv-validator
2624
- uses: codecov/codecov-action@v5
2725
with:
2826
fail_ci_if_error: true

.github/workflows/ci-arktype-validator.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20.x
20-
- run: yarn workspaces focus hono-middleware @hono/arktype-validator
21-
- run: yarn workspace @hono/arktype-validator build
22-
- run: yarn workspace @hono/arktype-validator publint
23-
- run: yarn workspace @hono/arktype-validator typecheck
24-
- run: yarn eslint packages/arktype-validator
25-
- run: yarn test --coverage --project @hono/arktype-validator
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --filter './' --filter './packages/arktype-validator'
19+
- run: bun --filter './packages/arktype-validator' build
20+
- run: bun --filter './packages/arktype-validator' publint
21+
- run: bun --filter './packages/arktype-validator' typecheck
22+
- run: bun eslint packages/arktype-validator
23+
- run: bun vitest --coverage --project @hono/arktype-validator
2624
- uses: codecov/codecov-action@v5
2725
with:
2826
fail_ci_if_error: true

.github/workflows/ci-auth-js.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20.x
20-
- run: yarn workspaces focus hono-middleware @hono/auth-js
21-
- run: yarn workspace @hono/auth-js build
22-
- run: yarn workspace @hono/auth-js publint
23-
- run: yarn workspace @hono/auth-js typecheck
24-
- run: yarn eslint packages/auth-js
25-
- run: yarn test --coverage --project @hono/auth-js
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --filter './' --filter './packages/auth-js'
19+
- run: bun --filter './packages/auth-js' build
20+
- run: bun --filter './packages/auth-js' publint
21+
- run: bun --filter './packages/auth-js' typecheck
22+
- run: bun eslint packages/auth-js
23+
- run: bun vitest --coverage --project @hono/auth-js
2624
- uses: codecov/codecov-action@v5
2725
with:
2826
fail_ci_if_error: true

.github/workflows/ci-bun-transpiler.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: oven-sh/setup-bun@v1
18-
with:
19-
bun-version: 1.1.32
20-
- run: yarn workspaces focus hono-middleware @hono/bun-transpiler
21-
- run: yarn workspace @hono/bun-transpiler build
22-
- run: yarn workspace @hono/bun-transpiler publint
23-
- run: yarn workspace @hono/bun-transpiler typecheck
24-
- run: yarn eslint packages/bun-transpiler
25-
- run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --filter './' --filter './packages/bun-transpiler'
19+
- run: bun --filter './packages/bun-transpiler' build
20+
- run: bun --filter './packages/bun-transpiler' publint
21+
- run: bun --filter './packages/bun-transpiler' typecheck
22+
- run: bun eslint packages/bun-transpiler
23+
- run: bun --filter './packages/bun-transpiler' test --coverage --coverage-reporter lcov
2624
- uses: codecov/codecov-action@v5
2725
with:
2826
fail_ci_if_error: true

.github/workflows/ci-casbin.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20.x
20-
- run: yarn workspaces focus hono-middleware @hono/casbin
21-
- run: yarn workspace @hono/casbin build
22-
- run: yarn workspace @hono/casbin publint
23-
- run: yarn workspace @hono/casbin typecheck
24-
- run: yarn eslint packages/casbin
25-
- run: yarn test --coverage --project @hono/casbin
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --filter './' --filter './packages/casbin'
19+
- run: bun --filter './packages/casbin' build
20+
- run: bun --filter './packages/casbin' publint
21+
- run: bun --filter './packages/casbin' typecheck
22+
- run: bun eslint packages/casbin
23+
- run: bun vitest --coverage --project @hono/casbin
2624
- uses: codecov/codecov-action@v5
2725
with:
2826
fail_ci_if_error: true

.github/workflows/ci-class-validator.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20.x
20-
- run: yarn workspaces focus hono-middleware @hono/class-validator
21-
- run: yarn workspace @hono/class-validator build
22-
- run: yarn workspace @hono/class-validator publint
23-
- run: yarn workspace @hono/class-validator typecheck
24-
- run: yarn eslint packages/class-validator
25-
- run: yarn test --coverage --project @hono/class-validator
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --filter './' --filter './packages/class-validator'
19+
- run: bun --filter './packages/class-validator' build
20+
- run: bun --filter './packages/class-validator' publint
21+
- run: bun --filter './packages/class-validator' typecheck
22+
- run: bun eslint packages/class-validator
23+
- run: bun vitest --coverage --project @hono/class-validator
2624
- uses: codecov/codecov-action@v5
2725
with:
2826
fail_ci_if_error: true

.github/workflows/ci-clerk-auth.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20.x
20-
- run: yarn workspaces focus hono-middleware @hono/clerk-auth
21-
- run: yarn workspace @hono/clerk-auth build
22-
- run: yarn workspace @hono/clerk-auth publint
23-
- run: yarn workspace @hono/clerk-auth typecheck
24-
- run: yarn eslint packages/clerk-auth
25-
- run: yarn test --coverage --project @hono/clerk-auth
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --filter './' --filter './packages/clerk-auth'
19+
- run: bun --filter './packages/clerk-auth' build
20+
- run: bun --filter './packages/clerk-auth' publint
21+
- run: bun --filter './packages/clerk-auth' typecheck
22+
- run: bun eslint packages/clerk-auth
23+
- run: bun vitest --coverage --project @hono/clerk-auth
2624
- uses: codecov/codecov-action@v5
2725
with:
2826
fail_ci_if_error: true

.github/workflows/ci-cloudflare-access.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20.x
20-
- run: yarn workspaces focus hono-middleware @hono/cloudflare-access
21-
- run: yarn workspace @hono/cloudflare-access build
22-
- run: yarn workspace @hono/cloudflare-access publint
23-
- run: yarn workspace @hono/cloudflare-access typecheck
24-
- run: yarn eslint packages/cloudflare-access
25-
- run: yarn test --coverage --project @hono/cloudflare-access
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --filter './' --filter './packages/cloudflare-access'
19+
- run: bun --filter './packages/cloudflare-access' build
20+
- run: bun --filter './packages/cloudflare-access' publint
21+
- run: bun --filter './packages/cloudflare-access' typecheck
22+
- run: bun eslint packages/cloudflare-access
23+
- run: bun vitest --coverage --project @hono/cloudflare-access
2624
- uses: codecov/codecov-action@v5
2725
with:
2826
fail_ci_if_error: true

.github/workflows/ci-conform-validator.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20.x
20-
- run: yarn workspaces focus hono-middleware @hono/conform-validator
21-
- run: yarn workspace @hono/conform-validator build
22-
- run: yarn workspace @hono/conform-validator publint
23-
- run: yarn workspace @hono/conform-validator typecheck
24-
- run: yarn eslint packages/conform-validator
25-
- run: yarn test --coverage --project @hono/conform-validator
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --filter './' --filter './packages/conform-validator'
19+
- run: bun --filter './packages/conform-validator' build
20+
- run: bun --filter './packages/conform-validator' publint
21+
- run: bun --filter './packages/conform-validator' typecheck
22+
- run: bun eslint packages/conform-validator
23+
- run: bun vitest --coverage --project @hono/conform-validator
2624
- uses: codecov/codecov-action@v5
2725
with:
2826
fail_ci_if_error: true

0 commit comments

Comments
 (0)