build: typescript project references (#1077)

* build: typescript project references

* chore: remove duplicate keys
pull/1099/head
Jonathan Haines 2025-04-02 20:28:02 +11:00 committed by GitHub
parent 5dd598f499
commit e8512f0ee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
204 changed files with 1521 additions and 286 deletions

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/ajv-validator
- run: yarn workspace @hono/ajv-validator build
- run: yarn workspace @hono/ajv-validator publint
- run: yarn workspace @hono/ajv-validator typecheck
- run: yarn eslint packages/ajv-validator
- run: yarn test --coverage --project @hono/ajv-validator
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/arktype-validator
- run: yarn workspace @hono/arktype-validator build
- run: yarn workspace @hono/arktype-validator publint
- run: yarn workspace @hono/arktype-validator typecheck
- run: yarn eslint packages/arktype-validator
- run: yarn test --coverage --project @hono/arktype-validator
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/auth-js
- run: yarn workspace @hono/auth-js build
- run: yarn workspace @hono/auth-js publint
- run: yarn workspace @hono/auth-js typecheck
- run: yarn eslint packages/auth-js
- run: yarn test --coverage --project @hono/auth-js
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/bun-transpiler
- run: yarn workspace @hono/bun-transpiler build
- run: yarn workspace @hono/bun-transpiler publint
- run: yarn workspace @hono/bun-transpiler typecheck
- run: yarn eslint packages/bun-transpiler
- run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/casbin
- run: yarn workspace @hono/casbin build
- run: yarn workspace @hono/casbin publint
- run: yarn workspace @hono/casbin typecheck
- run: yarn eslint packages/casbin
- run: yarn test --coverage --project @hono/casbin
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/class-validator
- run: yarn workspace @hono/class-validator build
- run: yarn workspace @hono/class-validator publint
- run: yarn workspace @hono/class-validator typecheck
- run: yarn eslint packages/class-validator
- run: yarn test --coverage --project @hono/class-validator
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/clerk-auth
- run: yarn workspace @hono/clerk-auth build
- run: yarn workspace @hono/clerk-auth publint
- run: yarn workspace @hono/clerk-auth typecheck
- run: yarn eslint packages/clerk-auth
- run: yarn test --coverage --project @hono/clerk-auth
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/cloudflare-access
- run: yarn workspace @hono/cloudflare-access build
- run: yarn workspace @hono/cloudflare-access publint
- run: yarn workspace @hono/cloudflare-access typecheck
- run: yarn eslint packages/cloudflare-access
- run: yarn test --coverage --project @hono/cloudflare-access
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/conform-validator
- run: yarn workspace @hono/conform-validator build
- run: yarn workspace @hono/conform-validator publint
- run: yarn workspace @hono/conform-validator typecheck
- run: yarn eslint packages/conform-validator
- run: yarn test --coverage --project @hono/conform-validator
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/effect-validator
- run: yarn workspace @hono/effect-validator build
- run: yarn workspace @hono/effect-validator publint
- run: yarn workspace @hono/effect-validator typecheck
- run: yarn eslint packages/effect-validator
- run: yarn test --coverage --project @hono/effect-validator
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/esbuild-transpiler
- run: yarn workspace @hono/esbuild-transpiler build
- run: yarn workspace @hono/esbuild-transpiler publint
- run: yarn workspace @hono/esbuild-transpiler typecheck
- run: yarn eslint packages/esbuild-transpiler
- run: yarn test --coverage --project @hono/esbuild-transpiler
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/event-emitter
- run: yarn workspace @hono/event-emitter build
- run: yarn workspace @hono/event-emitter publint
- run: yarn workspace @hono/event-emitter typecheck
- run: yarn eslint packages/event-emitter
- run: yarn test --coverage --project @hono/event-emitter
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/firebase-auth
- run: yarn workspace @hono/firebase-auth build
- run: yarn workspace @hono/firebase-auth publint
- run: yarn workspace @hono/firebase-auth typecheck
- run: yarn eslint packages/firebase-auth
- run: yarn test --coverage --project @hono/firebase-auth
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/graphql-server
- run: yarn workspace @hono/graphql-server build
- run: yarn workspace @hono/graphql-server publint
- run: yarn workspace @hono/graphql-server typecheck
- run: yarn eslint packages/graphql-server
- run: yarn test --coverage --project @hono/graphql-server
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/hello
- run: yarn workspace @hono/hello build
- run: yarn workspace @hono/hello publint
- run: yarn workspace @hono/hello typecheck
- run: yarn eslint packages/hello
- run: yarn test --coverage --project @hono/hello
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/medley-router
- run: yarn workspace @hono/medley-router build
- run: yarn workspace @hono/medley-router publint
- run: yarn workspace @hono/medley-router typecheck
- run: yarn eslint packages/medley-router
- run: yarn test --coverage --project @hono/medley-router
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/node-ws
- run: yarn workspace @hono/node-ws build
- run: yarn workspace @hono/node-ws publint
- run: yarn workspace @hono/node-ws typecheck
- run: yarn eslint packages/node-ws
- run: yarn test --coverage --project @hono/node-ws
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/oauth-providers
- run: yarn workspace @hono/oauth-providers build
- run: yarn workspace @hono/oauth-providers publint
- run: yarn workspace @hono/oauth-providers typecheck
- run: yarn eslint packages/oauth-providers
- run: yarn test --coverage --project @hono/oauth-providers
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/oidc-auth
- run: yarn workspace @hono/oidc-auth build
- run: yarn workspace @hono/oidc-auth publint
- run: yarn workspace @hono/oidc-auth typecheck
- run: yarn eslint packages/oidc-auth
- run: yarn test --coverage --project @hono/oidc-auth
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/otel
- run: yarn workspace @hono/otel build
- run: yarn workspace @hono/otel publint
- run: yarn workspace @hono/otel typecheck
- run: yarn eslint packages/otel
- run: yarn test --coverage --project @hono/otel
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/prometheus
- run: yarn workspace @hono/prometheus build
- run: yarn workspace @hono/prometheus publint
- run: yarn workspace @hono/prometheus typecheck
- run: yarn eslint packages/prometheus
- run: yarn test --coverage --project @hono/prometheus
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/qwik-city
- run: yarn workspace @hono/qwik-city build
- run: yarn workspace @hono/qwik-city publint
- run: yarn workspace @hono/qwik-city typecheck
- run: yarn eslint packages/qwik-city
# - run: yarn test --coverage --project @hono/qwik-city
# - uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/react-compat
- run: yarn workspace @hono/react-compat build
- run: yarn workspace @hono/react-compat publint
- run: yarn workspace @hono/react-compat typecheck
- run: yarn eslint packages/react-compat
# - run: yarn test --coverage --project @hono/react-compat
# - uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/react-renderer
- run: yarn workspace @hono/react-renderer build
- run: yarn workspace @hono/react-renderer publint
- run: yarn workspace @hono/react-renderer typecheck
- run: yarn eslint packages/react-renderer
- run: yarn test --coverage --project @hono/react-renderer
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/sentry
- run: yarn workspace @hono/sentry build
- run: yarn workspace @hono/sentry publint
- run: yarn workspace @hono/sentry typecheck
- run: yarn eslint packages/sentry
- run: yarn test --coverage --project @hono/sentry
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/standard-validator
- run: yarn workspace @hono/standard-validator build
- run: yarn workspace @hono/standard-validator publint
- run: yarn workspace @hono/standard-validator typecheck
- run: yarn eslint packages/standard-validator
- run: yarn test --coverage --project @hono/standard-validator
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/swagger-editor
- run: yarn workspace @hono/swagger-editor build
- run: yarn workspace @hono/swagger-editor publint
- run: yarn workspace @hono/swagger-editor typecheck
- run: yarn eslint packages/swagger-editor
- run: yarn test --coverage --project @hono/swagger-editor
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/swagger-ui
- run: yarn workspace @hono/swagger-ui build
- run: yarn workspace @hono/swagger-ui publint
- run: yarn workspace @hono/swagger-ui typecheck
- run: yarn eslint packages/swagger-ui
- run: yarn test --coverage --project @hono/swagger-ui
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/trpc-server
- run: yarn workspace @hono/trpc-server build
- run: yarn workspace @hono/trpc-server publint
- run: yarn workspace @hono/trpc-server typecheck
- run: yarn eslint packages/trpc-server
- run: yarn test --coverage --project @hono/trpc-server
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/tsyringe
- run: yarn workspace @hono/tsyringe build
- run: yarn workspace @hono/tsyringe publint
- run: yarn workspace @hono/tsyringe typecheck
- run: yarn eslint packages/tsyringe
- run: yarn test --coverage --project @hono/tsyringe
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/typebox-validator
- run: yarn workspace @hono/typebox-validator build
- run: yarn workspace @hono/typebox-validator publint
- run: yarn workspace @hono/typebox-validator typecheck
- run: yarn eslint packages/typebox-validator
- run: yarn test --coverage --project @hono/typebox-validator
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/typia-validator
- run: yarn workspace @hono/typia-validator build
- run: yarn workspace @hono/typia-validator publint
- run: yarn workspace @hono/typia-validator typecheck
- run: yarn eslint packages/typia-validator
- run: yarn test --coverage --project @hono/typia-validator
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/valibot-validator
- run: yarn workspace @hono/valibot-validator build
- run: yarn workspace @hono/valibot-validator publint
- run: yarn workspace @hono/valibot-validator typecheck
- run: yarn eslint packages/valibot-validator
- run: yarn test --coverage --project @hono/valibot-validator
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/zod-openapi
- run: yarn workspaces foreach --topological --recursive --from @hono/zod-openapi run build
- run: yarn workspace @hono/zod-openapi publint
- run: yarn workspace @hono/zod-openapi typecheck
- run: yarn eslint packages/zod-openapi
- run: yarn test --coverage --project @hono/zod-openapi
- uses: codecov/codecov-action@v5

View File

@ -20,6 +20,7 @@ jobs:
- run: yarn workspaces focus hono-middleware @hono/zod-validator
- run: yarn workspace @hono/zod-validator build
- run: yarn workspace @hono/zod-validator publint
- run: yarn workspace @hono/zod-validator typecheck
- run: yarn eslint packages/zod-validator
- run: yarn test --coverage --project @hono/zod-validator
- uses: codecov/codecov-action@v5

View File

@ -8,8 +8,11 @@
]
},
"scripts": {
"build": "yarn workspaces foreach --all --parallel --topological --verbose run build",
"publint": "yarn workspaces foreach --all --parallel --topological --verbose run publint",
"build": "yarn workspaces foreach --all --topological --verbose run build",
"publint": "yarn workspaces foreach --all --topological --verbose run publint",
"typecheck": "yarn tsc --build",
"typecheck:clean": "yarn tsc --build --clean",
"typecheck:watch": "yarn tsc --build --watch",
"test": "vitest",
"lint": "eslint 'packages/**/*.{ts,tsx}'",
"lint:fix": "eslint --fix 'packages/**/*.{ts,tsx}'",
@ -29,7 +32,8 @@
"@cloudflare/workers-types": "^4.20230307.0",
"@hono/eslint-config": "workspace:*",
"@ryoppippi/unplugin-typia": "^1.2.0",
"@types/node": "^20.14.8",
"@types/node": "^20.17.28",
"@types/ws": "^8.18.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@vitest/coverage-istanbul": "^3.0.8",

View File

@ -12,6 +12,7 @@
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"exports": {
@ -46,6 +47,7 @@
"ajv": ">=8.12.0",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
}
}

View File

@ -1,5 +1,6 @@
import type { JSONSchemaType, type ErrorObject } from 'ajv'
import type { JSONSchemaType, ErrorObject } from 'ajv'
import { Hono } from 'hono'
import type { ContentfulStatusCode } from 'hono/utils/http-status'
import type { Equal, Expect } from 'hono/utils/types'
import { ajvValidator } from '.'
@ -40,6 +41,8 @@ describe('Basic', () => {
success: boolean
message: string
}
outputFormat: 'json'
status: ContentfulStatusCode
}
}
}

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,6 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/ajv-validator",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -13,6 +13,7 @@
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"exports": {
@ -47,6 +48,7 @@
"arktype": "^2.0.0-dev.14",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
}
}

View File

@ -1,5 +1,6 @@
import { type } from 'arktype'
import { Hono } from 'hono'
import type { ContentfulStatusCode } from 'hono/utils/http-status'
import type { Equal, Expect } from 'hono/utils/types'
import { arktypeValidator } from '.'
@ -53,6 +54,8 @@ describe('Basic', () => {
message: string
queryName: string | undefined
}
outputFormat: 'json'
status: ContentfulStatusCode
}
}
}

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,6 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/arktype-validator",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -40,6 +40,7 @@
"build": "tsup src/index.ts src/react.tsx",
"prepack": "yarn build",
"publint": "attw --pack --profile node16 && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"license": "MIT",
@ -65,6 +66,7 @@
"publint": "^0.3.9",
"react": "^18.2.0",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
},
"engines": {

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "dist",
"jsx": "react"
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"references": []
}

View File

@ -1,11 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"outDir": "./dist",
"jsx": "react",
"types": ["node", "vitest/globals"]
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,14 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/auth-js",
"noEmit": true,
"jsx": "react"
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -13,6 +13,7 @@
"build": "tsup ./src/index.ts --external bun",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "bun test"
},
"exports": {
@ -46,6 +47,7 @@
"@types/bun": "^1.0.0",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
},
"engines": {

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,6 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/bun-transpiler",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -35,6 +35,7 @@
"build": "tsup ./src/index.ts ./src/helper/index.ts",
"prepack": "yarn build",
"publint": "attw --pack --profile node16 && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"license": "MIT",
@ -57,6 +58,7 @@
"casbin": "^5.30.0",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
}
}

View File

@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["./src/**/*.ts"],
"references": []
}

View File

@ -1,6 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"exactOptionalPropertyTypes": true
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/casbin",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -26,6 +26,7 @@
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"license": "MIT",
@ -46,6 +47,7 @@
"@arethetypeswrong/cli": "^0.17.4",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
},
"dependencies": {

View File

@ -3,6 +3,7 @@ import type { ValidationError } from 'class-validator'
import { IsInt, IsString, ValidateNested } from 'class-validator'
import { Hono } from 'hono'
import type { ExtractSchema } from 'hono/types'
import type { ContentfulStatusCode } from 'hono/utils/http-status'
import type { Equal, Expect } from 'hono/utils/types'
import { classValidator } from '.'
@ -39,6 +40,8 @@ describe('Basic', () => {
success: boolean
message: string
}
outputFormat: 'json'
status: ContentfulStatusCode
}
}
}

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,8 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"emitDecoratorMetadata": true,
"experimentalDecorators": true
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/class-validator",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -1,8 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"types": ["vitest/globals"],
"emitDecoratorMetadata": true,
"experimentalDecorators": true
}
}

View File

@ -4,7 +4,8 @@ export default defineProject({
test: {
globals: true,
typecheck: {
tsconfig: './tsconfig.vitest.json',
tsconfig: './tsconfig.json',
enabled: true,
},
},
})

View File

@ -13,6 +13,7 @@
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"exports": {
@ -49,6 +50,7 @@
"publint": "^0.3.9",
"react": "^18.2.0",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
},
"engines": {

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,7 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"types": ["vitest/globals"]
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/clerk-auth",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -12,6 +12,7 @@
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"exports": {
@ -42,9 +43,9 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@cloudflare/workers-types": "^4.20230307.0",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
}
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"types": ["@cloudflare/workers-types"]
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,7 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"types": ["@cloudflare/workers-types"]
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/cloudflare-access",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -13,6 +13,7 @@
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"exports": {
@ -50,6 +51,7 @@
"conform-to-valibot": "^1.10.0",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"valibot": "^0.36.0",
"vitest": "^3.0.8",
"yup": "^1.4.0",

View File

@ -24,7 +24,7 @@ describe('Validate the hook option processing', () => {
handlerMockFn
)
const client = hc<typeof route>('http://localhost', {
fetch: (req, init) => {
fetch: (req: RequestInfo | URL, init?: RequestInit) => {
return app.request(req, init)
},
})

View File

@ -2,7 +2,7 @@ import { parseWithValibot } from 'conform-to-valibot'
import { Hono } from 'hono'
import { hc } from 'hono/client'
import type { ExtractSchema, ParsedFormValue } from 'hono/types'
import type { StatusCode } from 'hono/utils/http-status'
import type { ContentfulStatusCode } from 'hono/utils/http-status'
import type { Equal, Expect } from 'hono/utils/types'
import * as v from 'valibot'
import { conformValidator } from '.'
@ -53,7 +53,7 @@ describe('Validate requests using a Valibot schema', () => {
message: string
}
outputFormat: 'json'
status: StatusCode
status: ContentfulStatusCode
}
}
}
@ -64,7 +64,7 @@ describe('Validate requests using a Valibot schema', () => {
it('Should return 200 response', async () => {
const client = hc<typeof route>('http://localhost', {
fetch: (req, init) => {
fetch: (req: RequestInfo | URL, init?: RequestInit) => {
return app.request(req, init)
},
})

View File

@ -2,7 +2,7 @@ import { parseWithYup } from '@conform-to/yup'
import { Hono } from 'hono'
import { hc } from 'hono/client'
import type { ExtractSchema, ParsedFormValue } from 'hono/types'
import type { StatusCode } from 'hono/utils/http-status'
import type { ContentfulStatusCode } from 'hono/utils/http-status'
import type { Equal, Expect } from 'hono/utils/types'
import * as y from 'yup'
import { conformValidator } from '.'
@ -49,7 +49,7 @@ describe('Validate requests using a Yup schema', () => {
message: string
}
outputFormat: 'json'
status: StatusCode
status: ContentfulStatusCode
}
}
}
@ -60,7 +60,7 @@ describe('Validate requests using a Yup schema', () => {
it('Should return 200 response', async () => {
const client = hc<typeof route>('http://localhost', {
fetch: (req, init) => {
fetch: (req: RequestInfo | URL, init?: RequestInit) => {
return app.request(req, init)
},
})

View File

@ -2,7 +2,7 @@ import { parseWithZod } from '@conform-to/zod'
import { Hono } from 'hono'
import { hc } from 'hono/client'
import type { ExtractSchema, ParsedFormValue } from 'hono/types'
import type { StatusCode } from 'hono/utils/http-status'
import type { ContentfulStatusCode } from 'hono/utils/http-status'
import type { Equal, Expect } from 'hono/utils/types'
import * as z from 'zod'
import { conformValidator } from '.'
@ -49,7 +49,7 @@ describe('Validate requests using a Zod schema', () => {
message: string
}
outputFormat: 'json'
status: StatusCode
status: ContentfulStatusCode
}
}
}
@ -60,7 +60,7 @@ describe('Validate requests using a Zod schema', () => {
it('Should return 200 response', async () => {
const client = hc<typeof route>('http://localhost', {
fetch: (req, init) => {
fetch: (req: RequestInfo | URL, init?: RequestInit) => {
return app.request(req, init)
},
})

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,8 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"declaration": false,
"outDir": "./dist/cjs"
}
}

View File

@ -1,8 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"declaration": true,
"outDir": "./dist/esm"
}
}

View File

@ -1,6 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/conform-validator",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -25,6 +25,7 @@
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"license": "MIT",
@ -47,6 +48,7 @@
"effect": "3.10.0",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
}
}

View File

@ -1,6 +1,6 @@
import { Schema as S } from 'effect'
import { Hono } from 'hono'
import type { StatusCode } from 'hono/utils/http-status'
import type { ContentfulStatusCode } from 'hono/utils/http-status'
import type { Equal, Expect } from 'hono/utils/types'
import { effectValidator } from '.'
@ -59,7 +59,7 @@ describe('Basic', () => {
queryName: string | undefined
}
outputFormat: 'json'
status: StatusCode
status: ContentfulStatusCode
}
}
}
@ -135,7 +135,7 @@ describe('coerce', () => {
page: number
}
outputFormat: 'json'
status: StatusCode
status: ContentfulStatusCode
}
}
}

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,6 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"exactOptionalPropertyTypes": true
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/effect-validator",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -12,6 +12,7 @@
"build": "tsup ./src/*.ts ./src/transpilers/*.ts --no-splitting --external esbuild-wasm,esbuild",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"exports": {
@ -76,6 +77,7 @@
"esbuild-wasm": "^0.19.5",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
},
"engines": {

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,6 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"skipLibCheck": false
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/esbuild-transpiler",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -22,7 +22,6 @@
"typescript": "^5.0.0"
},
"dependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.10.0",
"eslint-config-prettier": "^10.1.1",
"eslint-import-resolver-typescript": "^4.2.2",

View File

@ -13,6 +13,7 @@
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest"
},
"exports": {
@ -46,6 +47,7 @@
"@arethetypeswrong/cli": "^0.17.4",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
},
"engines": {

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,6 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/event-emitter",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts"],
"references": [
{
"path": "./tsconfig.build.json"
}
]
}

View File

@ -12,6 +12,7 @@
"scripts": {
"start-firebase-emulator": "firebase emulators:start --project example-project12345",
"test-with-emulator": "firebase emulators:exec --project example-project12345 'vitest run'",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest",
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
@ -49,12 +50,12 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@cloudflare/workers-types": "^4.20240222.0",
"firebase-tools": "^13.29.1",
"miniflare": "^3.20240208.0",
"prettier": "^3.2.5",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8"
}
}

View File

@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "dist",
"types": ["@cloudflare/workers-types"]
},
"references": []
}

View File

@ -1,7 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"types": ["node", "@cloudflare/workers-types"]
}
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

Some files were not shown because too many files have changed in this diff Show More