Skip to content

Commit 056fd2c

Browse files
build: typescript project references
1 parent 4f9bb1d commit 056fd2c

File tree

197 files changed

+1726
-425
lines changed

Some content is hidden

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

197 files changed

+1726
-425
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/ajv-validator
2121
- run: yarn workspace @hono/ajv-validator build
2222
- run: yarn workspace @hono/ajv-validator publint
23+
- run: yarn workspace @hono/ajv-validator typecheck
2324
- run: yarn test --coverage --project @hono/ajv-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/arktype-validator
2121
- run: yarn workspace @hono/arktype-validator build
2222
- run: yarn workspace @hono/arktype-validator publint
23+
- run: yarn workspace @hono/arktype-validator typecheck
2324
- run: yarn test --coverage --project @hono/arktype-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/auth-js
2121
- run: yarn workspace @hono/auth-js build
2222
- run: yarn workspace @hono/auth-js publint
23+
- run: yarn workspace @hono/auth-js typecheck
2324
- run: yarn test --coverage --project @hono/auth-js
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/bun-transpiler
2121
- run: yarn workspace @hono/bun-transpiler build
2222
- run: yarn workspace @hono/bun-transpiler publint
23+
- run: yarn workspace @hono/bun-transpiler typecheck
2324
- run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-casbin.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/casbin
2121
- run: yarn workspace @hono/casbin build
2222
- run: yarn workspace @hono/casbin publint
23+
- run: yarn workspace @hono/casbin typecheck
2324
- run: yarn test --coverage --project @hono/casbin
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/class-validator
2121
- run: yarn workspace @hono/class-validator build
2222
- run: yarn workspace @hono/class-validator publint
23+
- run: yarn workspace @hono/class-validator typecheck
2324
- run: yarn test --coverage --project @hono/class-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/clerk-auth
2121
- run: yarn workspace @hono/clerk-auth build
2222
- run: yarn workspace @hono/clerk-auth publint
23+
- run: yarn workspace @hono/clerk-auth typecheck
2324
- run: yarn test --coverage --project @hono/clerk-auth
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/cloudflare-access
2121
- run: yarn workspace @hono/cloudflare-access build
2222
- run: yarn workspace @hono/cloudflare-access publint
23+
- run: yarn workspace @hono/cloudflare-access typecheck
2324
- run: yarn test --coverage --project @hono/cloudflare-access
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/conform-validator
2121
- run: yarn workspace @hono/conform-validator build
2222
- run: yarn workspace @hono/conform-validator publint
23+
- run: yarn workspace @hono/conform-validator typecheck
2324
- run: yarn test --coverage --project @hono/conform-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/effect-validator
2121
- run: yarn workspace @hono/effect-validator build
2222
- run: yarn workspace @hono/effect-validator publint
23+
- run: yarn workspace @hono/effect-validator typecheck
2324
- run: yarn test --coverage --project @hono/effect-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/esbuild-transpiler
2121
- run: yarn workspace @hono/esbuild-transpiler build
2222
- run: yarn workspace @hono/esbuild-transpiler publint
23+
- run: yarn workspace @hono/esbuild-transpiler typecheck
2324
- run: yarn test --coverage --project @hono/esbuild-transpiler
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-event-emitter.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/event-emitter
2121
- run: yarn workspace @hono/event-emitter build
2222
- run: yarn workspace @hono/event-emitter publint
23+
- run: yarn workspace @hono/event-emitter typecheck
2324
- run: yarn test --coverage --project @hono/event-emitter
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/firebase-auth
2121
- run: yarn workspace @hono/firebase-auth build
2222
- run: yarn workspace @hono/firebase-auth publint
23+
- run: yarn workspace @hono/firebase-auth typecheck
2324
- run: yarn test --coverage --project @hono/firebase-auth
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-graphql-server.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/graphql-server
2121
- run: yarn workspace @hono/graphql-server build
2222
- run: yarn workspace @hono/graphql-server publint
23+
- run: yarn workspace @hono/graphql-server typecheck
2324
- run: yarn test --coverage --project @hono/graphql-server
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-hello.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/hello
2121
- run: yarn workspace @hono/hello build
2222
- run: yarn workspace @hono/hello publint
23+
- run: yarn workspace @hono/hello typecheck
2324
- run: yarn test --coverage --project @hono/hello
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-medley-router.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/medley-router
2121
- run: yarn workspace @hono/medley-router build
2222
- run: yarn workspace @hono/medley-router publint
23+
- run: yarn workspace @hono/medley-router typecheck
2324
- run: yarn test --coverage --project @hono/medley-router
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-node-ws.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/node-ws
2121
- run: yarn workspace @hono/node-ws build
2222
- run: yarn workspace @hono/node-ws publint
23+
- run: yarn workspace @hono/node-ws typecheck
2324
- run: yarn test --coverage --project @hono/node-ws
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-oauth-providers.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/oauth-providers
2121
- run: yarn workspace @hono/oauth-providers build
2222
- run: yarn workspace @hono/oauth-providers publint
23+
- run: yarn workspace @hono/oauth-providers typecheck
2324
- run: yarn test --coverage --project @hono/oauth-providers
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/oidc-auth
2121
- run: yarn workspace @hono/oidc-auth build
2222
- run: yarn workspace @hono/oidc-auth publint
23+
- run: yarn workspace @hono/oidc-auth typecheck
2324
- run: yarn test --coverage --project @hono/oidc-auth
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-otel.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/otel
2121
- run: yarn workspace @hono/otel build
2222
- run: yarn workspace @hono/otel publint
23+
- run: yarn workspace @hono/otel typecheck
2324
- run: yarn test --coverage --project @hono/otel
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-prometheus.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/prometheus
2121
- run: yarn workspace @hono/prometheus build
2222
- run: yarn workspace @hono/prometheus publint
23+
- run: yarn workspace @hono/prometheus typecheck
2324
- run: yarn test --coverage --project @hono/prometheus
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-qwik-city.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/qwik-city
2121
- run: yarn workspace @hono/qwik-city build
2222
- run: yarn workspace @hono/qwik-city publint
23+
- run: yarn workspace @hono/qwik-city typecheck
24+
2325
# - run: yarn test --coverage --project @hono/qwik-city
2426
# - uses: codecov/codecov-action@v5
2527
# with:

.github/workflows/ci-react-compat.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/react-compat
2121
- run: yarn workspace @hono/react-compat build
2222
- run: yarn workspace @hono/react-compat publint
23+
- run: yarn workspace @hono/react-compat typecheck
24+
2325
# - run: yarn test --coverage --project @hono/react-compat
2426
# - uses: codecov/codecov-action@v5
2527
# with:

.github/workflows/ci-react-renderer.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/react-renderer
2121
- run: yarn workspace @hono/react-renderer build
2222
- run: yarn workspace @hono/react-renderer publint
23+
- run: yarn workspace @hono/react-renderer typecheck
2324
- run: yarn test --coverage --project @hono/react-renderer
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-sentry.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/sentry
2121
- run: yarn workspace @hono/sentry build
2222
- run: yarn workspace @hono/sentry publint
23+
- run: yarn workspace @hono/sentry typecheck
2324
- run: yarn test --coverage --project @hono/sentry
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/standard-validator
2121
- run: yarn workspace @hono/standard-validator build
2222
- run: yarn workspace @hono/standard-validator publint
23+
- run: yarn workspace @hono/standard-validator typecheck
2324
- run: yarn test --coverage --project @hono/standard-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-swagger-editor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/swagger-editor
2121
- run: yarn workspace @hono/swagger-editor build
2222
- run: yarn workspace @hono/swagger-editor publint
23+
- run: yarn workspace @hono/swagger-editor typecheck
2324
- run: yarn test --coverage --project @hono/swagger-editor
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-swagger-ui.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/swagger-ui
2121
- run: yarn workspace @hono/swagger-ui build
2222
- run: yarn workspace @hono/swagger-ui publint
23+
- run: yarn workspace @hono/swagger-ui typecheck
2324
- run: yarn test --coverage --project @hono/swagger-ui
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-trpc-server.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/trpc-server
2121
- run: yarn workspace @hono/trpc-server build
2222
- run: yarn workspace @hono/trpc-server publint
23+
- run: yarn workspace @hono/trpc-server typecheck
2324
- run: yarn test --coverage --project @hono/trpc-server
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-tsyringe.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/tsyringe
2121
- run: yarn workspace @hono/tsyringe build
2222
- run: yarn workspace @hono/tsyringe publint
23+
- run: yarn workspace @hono/tsyringe typecheck
2324
- run: yarn test --coverage --project @hono/tsyringe
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/typebox-validator
2121
- run: yarn workspace @hono/typebox-validator build
2222
- run: yarn workspace @hono/typebox-validator publint
23+
- run: yarn workspace @hono/typebox-validator typecheck
2324
- run: yarn test --coverage --project @hono/typebox-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/typia-validator
2121
- run: yarn workspace @hono/typia-validator build
2222
- run: yarn workspace @hono/typia-validator publint
23+
- run: yarn workspace @hono/typia-validator typecheck
2324
- run: yarn test --coverage --project @hono/typia-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/valibot-validator
2121
- run: yarn workspace @hono/valibot-validator build
2222
- run: yarn workspace @hono/valibot-validator publint
23+
- run: yarn workspace @hono/valibot-validator typecheck
2324
- run: yarn test --coverage --project @hono/valibot-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

.github/workflows/ci-zod-openapi.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/zod-openapi
2121
- run: yarn workspace @hono/zod-openapi build
2222
- run: yarn workspace @hono/zod-openapi publint
23+
- run: yarn workspace @hono/zod-openapi typecheck
2324
- run: yarn test --coverage --project @hono/zod-openapi
2425
- uses: codecov/codecov-action@v5
2526
with:

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: yarn workspaces focus hono-middleware @hono/zod-validator
2121
- run: yarn workspace @hono/zod-validator build
2222
- run: yarn workspace @hono/zod-validator publint
23+
- run: yarn workspace @hono/zod-validator typecheck
2324
- run: yarn test --coverage --project @hono/zod-validator
2425
- uses: codecov/codecov-action@v5
2526
with:

package.json

+4-35
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,11 @@
88
]
99
},
1010
"scripts": {
11-
"build:hello": "yarn workspace @hono/hello build",
12-
"build:zod-validator": "yarn workspace @hono/zod-validator build",
13-
"build:class-validator": "yarn workspace @hono/class-validator build",
14-
"build:arktype-validator": "yarn workspace @hono/arktype-validator build",
15-
"build:qwik-city": "yarn workspace @hono/qwik-city build",
16-
"build:graphql-server": "yarn workspace @hono/graphql-server build",
17-
"build:sentry": "yarn workspace @hono/sentry build",
18-
"build:firebase-auth": "yarn workspace @hono/firebase-auth build",
19-
"build:trpc-server": "yarn workspace @hono/trpc-server build",
20-
"build:clerk-auth": "yarn workspace @hono/clerk-auth build",
21-
"build:typebox-validator": "yarn workspace @hono/typebox-validator build",
22-
"build:medley-router": "yarn workspace @hono/medley-router build",
23-
"build:valibot-validator": "yarn workspace @hono/valibot-validator build",
24-
"build:zod-openapi": "yarn workspace @hono/zod-openapi install && yarn workspace @hono/zod-openapi build",
25-
"build:typia-validator": "yarn workspace @hono/typia-validator build",
26-
"build:swagger-ui": "yarn workspace @hono/swagger-ui build",
27-
"build:swagger-editor": "yarn workspace @hono/swagger-editor build",
28-
"build:esbuild-transpiler": "yarn workspace @hono/esbuild-transpiler build",
29-
"build:event-emitter": "yarn workspace @hono/event-emitter build",
30-
"build:oauth-providers": "yarn workspace @hono/oauth-providers build",
31-
"build:react-renderer": "yarn workspace @hono/react-renderer build",
32-
"build:auth-js": "yarn workspace @hono/auth-js build",
33-
"build:bun-transpiler": "yarn workspace @hono/bun-transpiler build",
34-
"build:prometheus": "yarn workspace @hono/prometheus build",
35-
"build:oidc-auth": "yarn workspace @hono/oidc-auth build",
36-
"build:node-ws": "yarn workspace @hono/node-ws build",
37-
"build:react-compat": "yarn workspace @hono/react-compat build",
38-
"build:effect-validator": "yarn workspace @hono/effect-validator build",
39-
"build:conform-validator": "yarn workspace @hono/conform-validator build",
40-
"build:casbin": "yarn workspace @hono/casbin build",
41-
"build:ajv-validator": "yarn workspace @hono/ajv-validator build",
42-
"build:tsyringe": "yarn workspace @hono/tsyringe build",
43-
"build:cloudflare-access": "yarn workspace @hono/cloudflare-access build",
44-
"build:standard-validator": "yarn workspace @hono/standard-validator build",
45-
"build:otel": "yarn workspace @hono/otel build",
4611
"build": "yarn workspaces foreach --all --parallel --topological --verbose run build",
4712
"publint": "yarn workspaces foreach --all --parallel --topological --verbose run publint",
13+
"typecheck": "yarn workspaces foreach --all --parallel --topological --verbose run typecheck",
14+
"typecheck:clean": "yarn tsc --build --clean",
15+
"typecheck:watch": "yarn tsc --build --watch",
4816
"test": "vitest",
4917
"lint": "eslint 'packages/**/*.{ts,tsx}'",
5018
"lint:fix": "eslint --fix 'packages/**/*.{ts,tsx}'",
@@ -64,6 +32,7 @@
6432
"@cloudflare/workers-types": "^4.20230307.0",
6533
"@ryoppippi/unplugin-typia": "^1.2.0",
6634
"@types/node": "^20.14.8",
35+
"@types/ws": "^8.18.0",
6736
"@typescript-eslint/eslint-plugin": "^8.7.0",
6837
"@typescript-eslint/parser": "^8.7.0",
6938
"@vitest/coverage-istanbul": "^3.0.8",

packages/ajv-validator/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"build": "tsup ./src/index.ts",
1313
"prepack": "yarn build",
1414
"publint": "attw --pack && publint",
15+
"typecheck": "tsc -b tsconfig.build.json",
1516
"test": "vitest"
1617
},
1718
"exports": {
@@ -47,6 +48,7 @@
4748
"hono": "^4.4.12",
4849
"publint": "^0.3.9",
4950
"tsup": "^8.4.0",
51+
"typescript": "^5.8.2",
5052
"vitest": "^3.0.8"
5153
}
5254
}

packages/ajv-validator/src/index.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import type { JSONSchemaType, type ErrorObject } from 'ajv'
1+
import type { JSONSchemaType, ErrorObject } from 'ajv'
22
import { Hono } from 'hono'
3+
import type { StatusCode } from 'hono/utils/http-status'
34
import type { Equal, Expect } from 'hono/utils/types'
45
import { ajvValidator } from '.'
56

@@ -40,6 +41,8 @@ describe('Basic', () => {
4041
success: boolean
4142
message: string
4243
}
44+
outputFormat: 'json'
45+
status: StatusCode
4346
}
4447
}
4548
}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"rootDir": "src",
6+
"outDir": "dist",
7+
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo"
8+
},
9+
"include": ["src/**/*.ts"],
10+
"exclude": ["**/*.test.ts", "vitest.config.ts"],
11+
"references": []
12+
}

0 commit comments

Comments
 (0)