chore(zod-validator): run prettier to fix CI (#1221)
* chore(zod-validator): run prettier to fix CI * ci: fix changed packagespull/870/merge
parent
b73b7aed29
commit
44b1c24b95
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue