Skip to content

Commit 0b9fcff

Browse files
feat: add honojs/middleware (#42)
1 parent 50efb3f commit 0b9fcff

File tree

5 files changed

+23
-0
lines changed

5 files changed

+23
-0
lines changed

.github/workflows/ecosystem-ci-from-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ on:
3434
- nuxt-test-utils
3535
- elk
3636
- effect
37+
- hono
3738
- lerna-lite
3839
- zustand
3940
- sveltejs-cli

.github/workflows/ecosystem-ci-selected.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ on:
3939
- nuxt-test-utils
4040
- elk
4141
- effect
42+
- hono
4243
- lerna-lite
4344
- zustand
4445
- sveltejs-cli

.github/workflows/ecosystem-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
- nuxt-test-utils
4747
- elk
4848
- effect
49+
- hono
4950
- lerna-lite
5051
- zustand
5152
- sveltejs-cli

tests/hono.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { runInRepo } from '../utils'
2+
import { RunOptions } from '../types'
3+
4+
export async function test(options: RunOptions) {
5+
await runInRepo({
6+
...options,
7+
build: 'build',
8+
repo: 'honojs/middleware',
9+
test: 'test',
10+
})
11+
}

utils.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,15 @@ export async function applyPackageOverrides(
521521
...overrides,
522522
}
523523
} else if (pm === 'yarn') {
524+
const version = options.release || parseVitestVersion(options.vitestPath)
525+
526+
if (!options.release) {
527+
for (const key in overrides) {
528+
const tar = key.replace('@', '').replace('/', '-')
529+
overrides[key] = `${overrides[key]}/${tar}-${version}.tgz`
530+
}
531+
}
532+
524533
pkg.resolutions = {
525534
...pkg.resolutions,
526535
...overrides,

0 commit comments

Comments
 (0)