chore(zod-validator): run prettier to fix CI (#1221)

* chore(zod-validator): run prettier to fix CI

* ci: fix changed packages
pull/870/merge
Jonathan Haines 2025-06-13 17:18:23 +10:00 committed by GitHub
parent b73b7aed29
commit 44b1c24b95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 13 deletions

View File

@ -24,7 +24,7 @@ jobs:
"hono-middleware" "hono-middleware"
"@hono/bun-transpiler" "@hono/bun-transpiler"
); );
changed=$(yarn workspaces list --json --since | jq -nc --arg exclude "$exclude" '[inputs.name | select(inside($exclude) | not) | sub("@hono/"; "")]') changed=$(yarn workspaces list --json --since | jq -nc '[inputs.name | select(any(.; inside($ARGS.positional[])) | not) | sub("@hono/"; "")]' --args "${exclude[@]}")
echo "packages=${changed}" >> $GITHUB_OUTPUT echo "packages=${changed}" >> $GITHUB_OUTPUT
build: build:
@ -61,11 +61,12 @@ jobs:
with: with:
node-version: 20.x node-version: 20.x
- run: yarn workspaces focus hono-middleware @hono/${{ matrix.package }} - run: yarn workspaces focus hono-middleware @hono/${{ matrix.package }}
- run: yarn workspaces foreach --topological --recursive --from @hono/${{ matrix.package }} run build
- run: yarn test --coverage --project @hono/${{ matrix.package }} - run: yarn test --coverage --project @hono/${{ matrix.package }}
id: test id: test
if: ${{ matrix.package != 'qwik-city' }} if: ${{ matrix.package != 'qwik-city' && matrix.package != 'react-compat' }}
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
if: ${{ matrix.package != 'qwik-city' }} if: ${{ matrix.package != 'qwik-city' && matrix.package != 'react-compat' }}
with: with:
fail_ci_if_error: true fail_ci_if_error: true
directory: ./coverage directory: ./coverage

View File

@ -472,7 +472,7 @@ Be careful when combining `OpenAPIHono` instances with plain `Hono` instances. `
If you're migrating from plain `Hono` to `OpenAPIHono`, we recommend porting your top-level app, then working your way down the router tree. If you're migrating from plain `Hono` to `OpenAPIHono`, we recommend porting your top-level app, then working your way down the router tree.
When using the `.route()` method to mount a child OpenAPIHono app that uses path parameters, you should use the Hono *:param* syntax in the parent route path, rather than the OpenAPI *{param}* syntax: When using the `.route()` method to mount a child OpenAPIHono app that uses path parameters, you should use the Hono _:param_ syntax in the parent route path, rather than the OpenAPI _{param}_ syntax:
``` ```
const bookActionsApp = new OpenAPIHono() const bookActionsApp = new OpenAPIHono()

View File

@ -2,18 +2,12 @@
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../dist/out-tsc/packages/zod-openapi", "outDir": "../../dist/out-tsc/packages/zod-openapi",
"types": [ "types": ["vitest/globals"]
"vitest/globals"
]
}, },
"include": [ "include": ["**/*.test.ts", "**/*.test-d.ts", "vitest.config.ts"],
"**/*.test.ts",
"**/*.test-d.ts",
"vitest.config.ts"
],
"references": [ "references": [
{ {
"path": "./tsconfig.build.json" "path": "./tsconfig.build.json"
} }
] ]
} }