From e8512f0ee93756aa5969a41982991e7fe8c8cc0b Mon Sep 17 00:00:00 2001 From: Jonathan Haines Date: Wed, 2 Apr 2025 20:28:02 +1100 Subject: [PATCH] build: typescript project references (#1077) * build: typescript project references * chore: remove duplicate keys --- .github/workflows/ci-ajv-validator.yml | 1 + .github/workflows/ci-arktype-validator.yml | 1 + .github/workflows/ci-auth-js.yml | 1 + .github/workflows/ci-bun-transpiler.yml | 1 + .github/workflows/ci-casbin.yml | 1 + .github/workflows/ci-class-validator.yml | 1 + .github/workflows/ci-clerk-auth.yml | 1 + .github/workflows/ci-cloudflare-access.yml | 1 + .github/workflows/ci-conform-validator.yml | 1 + .github/workflows/ci-effect-validator.yml | 1 + .github/workflows/ci-esbuild-transpiler.yml | 1 + .github/workflows/ci-event-emitter.yml | 1 + .github/workflows/ci-firebase-auth.yml | 1 + .github/workflows/ci-graphql-server.yml | 1 + .github/workflows/ci-hello.yml | 1 + .github/workflows/ci-medley-router.yml | 1 + .github/workflows/ci-node-ws.yml | 1 + .github/workflows/ci-oauth-providers.yml | 1 + .github/workflows/ci-oidc-auth.yml | 1 + .github/workflows/ci-otel.yml | 1 + .github/workflows/ci-prometheus.yml | 1 + .github/workflows/ci-qwik-city.yml | 1 + .github/workflows/ci-react-compat.yml | 1 + .github/workflows/ci-react-renderer.yml | 1 + .github/workflows/ci-sentry.yml | 1 + .github/workflows/ci-standard-validator.yml | 1 + .github/workflows/ci-swagger-editor.yml | 1 + .github/workflows/ci-swagger-ui.yml | 1 + .github/workflows/ci-trpc-server.yml | 1 + .github/workflows/ci-tsyringe.yml | 1 + .github/workflows/ci-typebox-validator.yml | 1 + .github/workflows/ci-typia-validator.yml | 1 + .github/workflows/ci-valibot-validator.yml | 1 + .github/workflows/ci-zod-openapi.yml | 1 + .github/workflows/ci-zod-validator.yml | 1 + package.json | 10 ++- packages/ajv-validator/package.json | 2 + packages/ajv-validator/src/index.test.ts | 5 +- packages/ajv-validator/tsconfig.build.json | 12 ++++ packages/ajv-validator/tsconfig.json | 15 ++-- packages/ajv-validator/tsconfig.spec.json | 13 ++++ packages/arktype-validator/package.json | 2 + packages/arktype-validator/src/index.test.ts | 3 + .../arktype-validator/tsconfig.build.json | 12 ++++ packages/arktype-validator/tsconfig.json | 15 ++-- packages/arktype-validator/tsconfig.spec.json | 13 ++++ packages/auth-js/package.json | 2 + packages/auth-js/tsconfig.build.json | 9 +++ packages/auth-js/tsconfig.json | 20 +++--- packages/auth-js/tsconfig.spec.json | 14 ++++ packages/bun-transpiler/package.json | 2 + packages/bun-transpiler/tsconfig.build.json | 12 ++++ packages/bun-transpiler/tsconfig.json | 15 ++-- packages/bun-transpiler/tsconfig.spec.json | 13 ++++ packages/casbin/package.json | 2 + packages/casbin/tsconfig.build.json | 11 +++ packages/casbin/tsconfig.json | 15 ++-- packages/casbin/tsconfig.spec.json | 13 ++++ packages/class-validator/package.json | 2 + packages/class-validator/src/index.test.ts | 3 + packages/class-validator/tsconfig.build.json | 12 ++++ packages/class-validator/tsconfig.json | 17 +++-- packages/class-validator/tsconfig.spec.json | 13 ++++ packages/class-validator/tsconfig.vitest.json | 8 --- packages/class-validator/vitest.config.ts | 3 +- packages/clerk-auth/package.json | 2 + packages/clerk-auth/tsconfig.build.json | 12 ++++ packages/clerk-auth/tsconfig.json | 16 +++-- packages/clerk-auth/tsconfig.spec.json | 13 ++++ packages/cloudflare-access/package.json | 3 +- .../cloudflare-access/tsconfig.build.json | 13 ++++ packages/cloudflare-access/tsconfig.json | 16 +++-- packages/cloudflare-access/tsconfig.spec.json | 13 ++++ packages/conform-validator/package.json | 2 + packages/conform-validator/src/hook.test.ts | 2 +- .../conform-validator/src/valibot.test.ts | 6 +- packages/conform-validator/src/yup.test.ts | 6 +- packages/conform-validator/src/zod.test.ts | 6 +- .../conform-validator/tsconfig.build.json | 12 ++++ packages/conform-validator/tsconfig.cjs.json | 8 --- packages/conform-validator/tsconfig.esm.json | 8 --- packages/conform-validator/tsconfig.json | 15 ++-- packages/conform-validator/tsconfig.spec.json | 13 ++++ packages/effect-validator/package.json | 2 + packages/effect-validator/src/index.test.ts | 6 +- packages/effect-validator/tsconfig.build.json | 12 ++++ packages/effect-validator/tsconfig.json | 15 ++-- packages/effect-validator/tsconfig.spec.json | 13 ++++ packages/esbuild-transpiler/package.json | 2 + .../esbuild-transpiler/tsconfig.build.json | 12 ++++ packages/esbuild-transpiler/tsconfig.json | 15 ++-- .../esbuild-transpiler/tsconfig.spec.json | 13 ++++ packages/eslint-config/package.json | 1 - packages/event-emitter/package.json | 2 + packages/event-emitter/tsconfig.build.json | 12 ++++ packages/event-emitter/tsconfig.json | 15 ++-- packages/event-emitter/tsconfig.spec.json | 13 ++++ packages/firebase-auth/package.json | 3 +- packages/firebase-auth/tsconfig.build.json | 8 +++ packages/firebase-auth/tsconfig.json | 16 +++-- packages/firebase-auth/tsconfig.spec.json | 13 ++++ packages/graphql-server/package.json | 3 +- packages/graphql-server/tsconfig.build.json | 12 ++++ packages/graphql-server/tsconfig.json | 16 +++-- packages/graphql-server/tsconfig.spec.json | 14 ++++ packages/hello/package.json | 2 + packages/hello/tsconfig.build.json | 12 ++++ packages/hello/tsconfig.json | 15 ++-- packages/hello/tsconfig.spec.json | 13 ++++ packages/medley-router/package.json | 2 + packages/medley-router/src/router.ts | 2 + packages/medley-router/tsconfig.build.json | 12 ++++ packages/medley-router/tsconfig.json | 16 +++-- packages/medley-router/tsconfig.spec.json | 13 ++++ packages/node-ws/package.json | 6 +- packages/node-ws/src/index.test.ts | 2 + packages/node-ws/tsconfig.build.json | 13 ++++ packages/node-ws/tsconfig.json | 16 +++-- packages/node-ws/tsconfig.spec.json | 13 ++++ packages/oauth-providers/package.json | 2 + packages/oauth-providers/tsconfig.build.json | 12 ++++ packages/oauth-providers/tsconfig.json | 16 +++-- packages/oauth-providers/tsconfig.spec.json | 13 ++++ packages/oidc-auth/package.json | 2 + packages/oidc-auth/tsconfig.build.json | 12 ++++ packages/oidc-auth/tsconfig.json | 17 +++-- packages/oidc-auth/tsconfig.spec.json | 13 ++++ packages/otel/package.json | 2 + packages/otel/tsconfig.build.json | 12 ++++ packages/otel/tsconfig.json | 18 +++-- packages/otel/tsconfig.spec.json | 13 ++++ packages/prometheus/package.json | 2 + packages/prometheus/tsconfig.build.json | 12 ++++ packages/prometheus/tsconfig.json | 16 +++-- packages/prometheus/tsconfig.spec.json | 13 ++++ packages/qwik-city/package.json | 6 +- packages/qwik-city/tsconfig.build.json | 12 ++++ packages/qwik-city/tsconfig.json | 12 ++-- packages/react-compat/package.json | 6 +- packages/react-compat/tsconfig.build.json | 12 ++++ packages/react-compat/tsconfig.json | 12 ++-- packages/react-renderer/package.json | 2 + packages/react-renderer/tsconfig.build.json | 12 ++++ packages/react-renderer/tsconfig.json | 19 +++--- packages/react-renderer/tsconfig.spec.json | 17 +++++ packages/sentry/package.json | 2 + packages/sentry/tsconfig.build.json | 12 ++++ packages/sentry/tsconfig.json | 16 +++-- packages/sentry/tsconfig.spec.json | 13 ++++ packages/standard-validator/package.json | 2 + .../src/__schemas__/arktype.ts | 1 - .../standard-validator/tsconfig.build.json | 12 ++++ packages/standard-validator/tsconfig.json | 15 ++-- .../standard-validator/tsconfig.spec.json | 13 ++++ packages/swagger-editor/package.json | 2 + packages/swagger-editor/tsconfig.build.json | 12 ++++ packages/swagger-editor/tsconfig.json | 15 ++-- packages/swagger-editor/tsconfig.spec.json | 13 ++++ packages/swagger-ui/package.json | 2 + packages/swagger-ui/tsconfig.build.json | 12 ++++ packages/swagger-ui/tsconfig.json | 15 ++-- packages/swagger-ui/tsconfig.spec.json | 13 ++++ packages/trpc-server/package.json | 2 + packages/trpc-server/tsconfig.build.json | 12 ++++ packages/trpc-server/tsconfig.json | 15 ++-- packages/trpc-server/tsconfig.spec.json | 13 ++++ packages/tsyringe/package.json | 2 + packages/tsyringe/tsconfig.build.json | 12 ++++ packages/tsyringe/tsconfig.json | 18 +++-- packages/tsyringe/tsconfig.spec.json | 13 ++++ packages/typebox-validator/package.json | 2 + packages/typebox-validator/src/index.test.ts | 3 + .../typebox-validator/tsconfig.build.json | 12 ++++ packages/typebox-validator/tsconfig.json | 15 ++-- packages/typebox-validator/tsconfig.spec.json | 13 ++++ packages/typia-validator/package.json | 2 + packages/typia-validator/src/http.test.ts | 7 ++ packages/typia-validator/src/index.test.ts | 3 + packages/typia-validator/tsconfig.build.json | 12 ++++ packages/typia-validator/tsconfig.json | 14 ++-- packages/typia-validator/tsconfig.spec.json | 18 +++++ packages/valibot-validator/package.json | 2 + packages/valibot-validator/src/index.test.ts | 6 +- .../valibot-validator/tsconfig.build.json | 12 ++++ packages/valibot-validator/tsconfig.json | 15 ++-- packages/valibot-validator/tsconfig.spec.json | 13 ++++ packages/zod-openapi/package.json | 2 + packages/zod-openapi/src/handler.test-d.ts | 1 - packages/zod-openapi/src/index.test-d.ts | 1 - packages/zod-openapi/tsconfig.build.json | 12 ++++ packages/zod-openapi/tsconfig.json | 15 ++-- packages/zod-openapi/tsconfig.spec.json | 13 ++++ packages/zod-validator/package.json | 12 +++- packages/zod-validator/src/index.test.ts | 9 +++ packages/zod-validator/tsconfig.build.json | 12 ++++ packages/zod-validator/tsconfig.cjs.json | 8 --- packages/zod-validator/tsconfig.esm.json | 8 --- packages/zod-validator/tsconfig.json | 15 ++-- packages/zod-validator/tsconfig.spec.json | 13 ++++ tsconfig.base.json | 20 ++++++ tsconfig.json | 53 +++++++++++---- tsconfig.tsup.json | 8 +++ tsup.config.ts | 2 +- yarn.lock | 68 ++++++++++++------- 204 files changed, 1521 insertions(+), 286 deletions(-) create mode 100644 packages/ajv-validator/tsconfig.build.json create mode 100644 packages/ajv-validator/tsconfig.spec.json create mode 100644 packages/arktype-validator/tsconfig.build.json create mode 100644 packages/arktype-validator/tsconfig.spec.json create mode 100644 packages/auth-js/tsconfig.build.json create mode 100644 packages/auth-js/tsconfig.spec.json create mode 100644 packages/bun-transpiler/tsconfig.build.json create mode 100644 packages/bun-transpiler/tsconfig.spec.json create mode 100644 packages/casbin/tsconfig.build.json create mode 100644 packages/casbin/tsconfig.spec.json create mode 100644 packages/class-validator/tsconfig.build.json create mode 100644 packages/class-validator/tsconfig.spec.json delete mode 100644 packages/class-validator/tsconfig.vitest.json create mode 100644 packages/clerk-auth/tsconfig.build.json create mode 100644 packages/clerk-auth/tsconfig.spec.json create mode 100644 packages/cloudflare-access/tsconfig.build.json create mode 100644 packages/cloudflare-access/tsconfig.spec.json create mode 100644 packages/conform-validator/tsconfig.build.json delete mode 100644 packages/conform-validator/tsconfig.cjs.json delete mode 100644 packages/conform-validator/tsconfig.esm.json create mode 100644 packages/conform-validator/tsconfig.spec.json create mode 100644 packages/effect-validator/tsconfig.build.json create mode 100644 packages/effect-validator/tsconfig.spec.json create mode 100644 packages/esbuild-transpiler/tsconfig.build.json create mode 100644 packages/esbuild-transpiler/tsconfig.spec.json create mode 100644 packages/event-emitter/tsconfig.build.json create mode 100644 packages/event-emitter/tsconfig.spec.json create mode 100644 packages/firebase-auth/tsconfig.build.json create mode 100644 packages/firebase-auth/tsconfig.spec.json create mode 100644 packages/graphql-server/tsconfig.build.json create mode 100644 packages/graphql-server/tsconfig.spec.json create mode 100644 packages/hello/tsconfig.build.json create mode 100644 packages/hello/tsconfig.spec.json create mode 100644 packages/medley-router/tsconfig.build.json create mode 100644 packages/medley-router/tsconfig.spec.json create mode 100644 packages/node-ws/tsconfig.build.json create mode 100644 packages/node-ws/tsconfig.spec.json create mode 100644 packages/oauth-providers/tsconfig.build.json create mode 100644 packages/oauth-providers/tsconfig.spec.json create mode 100644 packages/oidc-auth/tsconfig.build.json create mode 100644 packages/oidc-auth/tsconfig.spec.json create mode 100644 packages/otel/tsconfig.build.json create mode 100644 packages/otel/tsconfig.spec.json create mode 100644 packages/prometheus/tsconfig.build.json create mode 100644 packages/prometheus/tsconfig.spec.json create mode 100644 packages/qwik-city/tsconfig.build.json create mode 100644 packages/react-compat/tsconfig.build.json create mode 100644 packages/react-renderer/tsconfig.build.json create mode 100644 packages/react-renderer/tsconfig.spec.json create mode 100644 packages/sentry/tsconfig.build.json create mode 100644 packages/sentry/tsconfig.spec.json create mode 100644 packages/standard-validator/tsconfig.build.json create mode 100644 packages/standard-validator/tsconfig.spec.json create mode 100644 packages/swagger-editor/tsconfig.build.json create mode 100644 packages/swagger-editor/tsconfig.spec.json create mode 100644 packages/swagger-ui/tsconfig.build.json create mode 100644 packages/swagger-ui/tsconfig.spec.json create mode 100644 packages/trpc-server/tsconfig.build.json create mode 100644 packages/trpc-server/tsconfig.spec.json create mode 100644 packages/tsyringe/tsconfig.build.json create mode 100644 packages/tsyringe/tsconfig.spec.json create mode 100644 packages/typebox-validator/tsconfig.build.json create mode 100644 packages/typebox-validator/tsconfig.spec.json create mode 100644 packages/typia-validator/tsconfig.build.json create mode 100644 packages/typia-validator/tsconfig.spec.json create mode 100644 packages/valibot-validator/tsconfig.build.json create mode 100644 packages/valibot-validator/tsconfig.spec.json create mode 100644 packages/zod-openapi/tsconfig.build.json create mode 100644 packages/zod-openapi/tsconfig.spec.json create mode 100644 packages/zod-validator/tsconfig.build.json delete mode 100644 packages/zod-validator/tsconfig.cjs.json delete mode 100644 packages/zod-validator/tsconfig.esm.json create mode 100644 packages/zod-validator/tsconfig.spec.json create mode 100644 tsconfig.base.json create mode 100644 tsconfig.tsup.json diff --git a/.github/workflows/ci-ajv-validator.yml b/.github/workflows/ci-ajv-validator.yml index ffd7e725..be4f5d15 100644 --- a/.github/workflows/ci-ajv-validator.yml +++ b/.github/workflows/ci-ajv-validator.yml @@ -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 diff --git a/.github/workflows/ci-arktype-validator.yml b/.github/workflows/ci-arktype-validator.yml index 3af35685..c8510642 100644 --- a/.github/workflows/ci-arktype-validator.yml +++ b/.github/workflows/ci-arktype-validator.yml @@ -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 diff --git a/.github/workflows/ci-auth-js.yml b/.github/workflows/ci-auth-js.yml index 4d874be0..93dd548a 100644 --- a/.github/workflows/ci-auth-js.yml +++ b/.github/workflows/ci-auth-js.yml @@ -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 diff --git a/.github/workflows/ci-bun-transpiler.yml b/.github/workflows/ci-bun-transpiler.yml index 6eee2415..5b0598c7 100644 --- a/.github/workflows/ci-bun-transpiler.yml +++ b/.github/workflows/ci-bun-transpiler.yml @@ -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 diff --git a/.github/workflows/ci-casbin.yml b/.github/workflows/ci-casbin.yml index 1bee855d..2c0dee1c 100644 --- a/.github/workflows/ci-casbin.yml +++ b/.github/workflows/ci-casbin.yml @@ -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 diff --git a/.github/workflows/ci-class-validator.yml b/.github/workflows/ci-class-validator.yml index c43bdfc5..d2687358 100644 --- a/.github/workflows/ci-class-validator.yml +++ b/.github/workflows/ci-class-validator.yml @@ -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 diff --git a/.github/workflows/ci-clerk-auth.yml b/.github/workflows/ci-clerk-auth.yml index 5bcbe8f7..a44f90bb 100644 --- a/.github/workflows/ci-clerk-auth.yml +++ b/.github/workflows/ci-clerk-auth.yml @@ -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 diff --git a/.github/workflows/ci-cloudflare-access.yml b/.github/workflows/ci-cloudflare-access.yml index 7e81563b..70ca0b8f 100644 --- a/.github/workflows/ci-cloudflare-access.yml +++ b/.github/workflows/ci-cloudflare-access.yml @@ -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 diff --git a/.github/workflows/ci-conform-validator.yml b/.github/workflows/ci-conform-validator.yml index ed59a9d5..dcbb5f13 100644 --- a/.github/workflows/ci-conform-validator.yml +++ b/.github/workflows/ci-conform-validator.yml @@ -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 diff --git a/.github/workflows/ci-effect-validator.yml b/.github/workflows/ci-effect-validator.yml index ac684a0c..952b0963 100644 --- a/.github/workflows/ci-effect-validator.yml +++ b/.github/workflows/ci-effect-validator.yml @@ -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 diff --git a/.github/workflows/ci-esbuild-transpiler.yml b/.github/workflows/ci-esbuild-transpiler.yml index 855b53ae..6cba94b1 100644 --- a/.github/workflows/ci-esbuild-transpiler.yml +++ b/.github/workflows/ci-esbuild-transpiler.yml @@ -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 diff --git a/.github/workflows/ci-event-emitter.yml b/.github/workflows/ci-event-emitter.yml index fcee588d..faa70372 100644 --- a/.github/workflows/ci-event-emitter.yml +++ b/.github/workflows/ci-event-emitter.yml @@ -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 diff --git a/.github/workflows/ci-firebase-auth.yml b/.github/workflows/ci-firebase-auth.yml index f92741b0..99a6c0b3 100644 --- a/.github/workflows/ci-firebase-auth.yml +++ b/.github/workflows/ci-firebase-auth.yml @@ -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 diff --git a/.github/workflows/ci-graphql-server.yml b/.github/workflows/ci-graphql-server.yml index f123317c..407a1a81 100644 --- a/.github/workflows/ci-graphql-server.yml +++ b/.github/workflows/ci-graphql-server.yml @@ -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 diff --git a/.github/workflows/ci-hello.yml b/.github/workflows/ci-hello.yml index ab7b42f0..59b40800 100644 --- a/.github/workflows/ci-hello.yml +++ b/.github/workflows/ci-hello.yml @@ -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 diff --git a/.github/workflows/ci-medley-router.yml b/.github/workflows/ci-medley-router.yml index 3e59f0aa..26de4b6b 100644 --- a/.github/workflows/ci-medley-router.yml +++ b/.github/workflows/ci-medley-router.yml @@ -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 diff --git a/.github/workflows/ci-node-ws.yml b/.github/workflows/ci-node-ws.yml index d86a4b12..7ea21681 100644 --- a/.github/workflows/ci-node-ws.yml +++ b/.github/workflows/ci-node-ws.yml @@ -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 diff --git a/.github/workflows/ci-oauth-providers.yml b/.github/workflows/ci-oauth-providers.yml index e9b99de7..fe867e38 100644 --- a/.github/workflows/ci-oauth-providers.yml +++ b/.github/workflows/ci-oauth-providers.yml @@ -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 diff --git a/.github/workflows/ci-oidc-auth.yml b/.github/workflows/ci-oidc-auth.yml index ce0183ec..89d6d2e0 100644 --- a/.github/workflows/ci-oidc-auth.yml +++ b/.github/workflows/ci-oidc-auth.yml @@ -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 diff --git a/.github/workflows/ci-otel.yml b/.github/workflows/ci-otel.yml index 46339fb5..d541213d 100644 --- a/.github/workflows/ci-otel.yml +++ b/.github/workflows/ci-otel.yml @@ -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 diff --git a/.github/workflows/ci-prometheus.yml b/.github/workflows/ci-prometheus.yml index 98c8eb63..d32618ba 100644 --- a/.github/workflows/ci-prometheus.yml +++ b/.github/workflows/ci-prometheus.yml @@ -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 diff --git a/.github/workflows/ci-qwik-city.yml b/.github/workflows/ci-qwik-city.yml index b371a400..b3337bad 100644 --- a/.github/workflows/ci-qwik-city.yml +++ b/.github/workflows/ci-qwik-city.yml @@ -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 diff --git a/.github/workflows/ci-react-compat.yml b/.github/workflows/ci-react-compat.yml index f3fcb778..dbebfc37 100644 --- a/.github/workflows/ci-react-compat.yml +++ b/.github/workflows/ci-react-compat.yml @@ -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 diff --git a/.github/workflows/ci-react-renderer.yml b/.github/workflows/ci-react-renderer.yml index 470637a0..00fabc2e 100644 --- a/.github/workflows/ci-react-renderer.yml +++ b/.github/workflows/ci-react-renderer.yml @@ -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 diff --git a/.github/workflows/ci-sentry.yml b/.github/workflows/ci-sentry.yml index 5f7644ac..9eaf4ed8 100644 --- a/.github/workflows/ci-sentry.yml +++ b/.github/workflows/ci-sentry.yml @@ -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 diff --git a/.github/workflows/ci-standard-validator.yml b/.github/workflows/ci-standard-validator.yml index b00310f1..3233f01c 100644 --- a/.github/workflows/ci-standard-validator.yml +++ b/.github/workflows/ci-standard-validator.yml @@ -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 diff --git a/.github/workflows/ci-swagger-editor.yml b/.github/workflows/ci-swagger-editor.yml index 1c798b03..5326fc59 100644 --- a/.github/workflows/ci-swagger-editor.yml +++ b/.github/workflows/ci-swagger-editor.yml @@ -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 diff --git a/.github/workflows/ci-swagger-ui.yml b/.github/workflows/ci-swagger-ui.yml index 5b77f8c9..a7c3693c 100644 --- a/.github/workflows/ci-swagger-ui.yml +++ b/.github/workflows/ci-swagger-ui.yml @@ -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 diff --git a/.github/workflows/ci-trpc-server.yml b/.github/workflows/ci-trpc-server.yml index 6e6870a9..ef803837 100644 --- a/.github/workflows/ci-trpc-server.yml +++ b/.github/workflows/ci-trpc-server.yml @@ -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 diff --git a/.github/workflows/ci-tsyringe.yml b/.github/workflows/ci-tsyringe.yml index 67c88e09..d4c76c08 100644 --- a/.github/workflows/ci-tsyringe.yml +++ b/.github/workflows/ci-tsyringe.yml @@ -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 diff --git a/.github/workflows/ci-typebox-validator.yml b/.github/workflows/ci-typebox-validator.yml index cda0c949..5f9d9f46 100644 --- a/.github/workflows/ci-typebox-validator.yml +++ b/.github/workflows/ci-typebox-validator.yml @@ -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 diff --git a/.github/workflows/ci-typia-validator.yml b/.github/workflows/ci-typia-validator.yml index e31c7e2a..af99d217 100644 --- a/.github/workflows/ci-typia-validator.yml +++ b/.github/workflows/ci-typia-validator.yml @@ -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 diff --git a/.github/workflows/ci-valibot-validator.yml b/.github/workflows/ci-valibot-validator.yml index a7213f3a..2cca0a42 100644 --- a/.github/workflows/ci-valibot-validator.yml +++ b/.github/workflows/ci-valibot-validator.yml @@ -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 diff --git a/.github/workflows/ci-zod-openapi.yml b/.github/workflows/ci-zod-openapi.yml index 05468528..93b57402 100644 --- a/.github/workflows/ci-zod-openapi.yml +++ b/.github/workflows/ci-zod-openapi.yml @@ -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 diff --git a/.github/workflows/ci-zod-validator.yml b/.github/workflows/ci-zod-validator.yml index 66eae5db..14772e3f 100644 --- a/.github/workflows/ci-zod-validator.yml +++ b/.github/workflows/ci-zod-validator.yml @@ -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 diff --git a/package.json b/package.json index 2be6d308..0267502f 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/ajv-validator/package.json b/packages/ajv-validator/package.json index dac347ed..3d874b3c 100644 --- a/packages/ajv-validator/package.json +++ b/packages/ajv-validator/package.json @@ -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" } } diff --git a/packages/ajv-validator/src/index.test.ts b/packages/ajv-validator/src/index.test.ts index 81af94a1..1a6185e9 100644 --- a/packages/ajv-validator/src/index.test.ts +++ b/packages/ajv-validator/src/index.test.ts @@ -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 } } } diff --git a/packages/ajv-validator/tsconfig.build.json b/packages/ajv-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/ajv-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/ajv-validator/tsconfig.json b/packages/ajv-validator/tsconfig.json index 9f275945..d4d0929e 100644 --- a/packages/ajv-validator/tsconfig.json +++ b/packages/ajv-validator/tsconfig.json @@ -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" + } + ] } diff --git a/packages/ajv-validator/tsconfig.spec.json b/packages/ajv-validator/tsconfig.spec.json new file mode 100644 index 00000000..c3312ce1 --- /dev/null +++ b/packages/ajv-validator/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/arktype-validator/package.json b/packages/arktype-validator/package.json index 54a4e3da..a4b1233f 100644 --- a/packages/arktype-validator/package.json +++ b/packages/arktype-validator/package.json @@ -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" } } diff --git a/packages/arktype-validator/src/index.test.ts b/packages/arktype-validator/src/index.test.ts index 11934736..11dfa12b 100644 --- a/packages/arktype-validator/src/index.test.ts +++ b/packages/arktype-validator/src/index.test.ts @@ -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 } } } diff --git a/packages/arktype-validator/tsconfig.build.json b/packages/arktype-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/arktype-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/arktype-validator/tsconfig.json b/packages/arktype-validator/tsconfig.json index 9f275945..d4d0929e 100644 --- a/packages/arktype-validator/tsconfig.json +++ b/packages/arktype-validator/tsconfig.json @@ -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" + } + ] } diff --git a/packages/arktype-validator/tsconfig.spec.json b/packages/arktype-validator/tsconfig.spec.json new file mode 100644 index 00000000..6313653f --- /dev/null +++ b/packages/arktype-validator/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/auth-js/package.json b/packages/auth-js/package.json index 3952c5a6..164394e2 100644 --- a/packages/auth-js/package.json +++ b/packages/auth-js/package.json @@ -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": { diff --git a/packages/auth-js/tsconfig.build.json b/packages/auth-js/tsconfig.build.json new file mode 100644 index 00000000..44b204b9 --- /dev/null +++ b/packages/auth-js/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "dist", + "jsx": "react" + }, + "include": ["src/**/*.ts", "src/**/*.tsx"], + "references": [] +} diff --git a/packages/auth-js/tsconfig.json b/packages/auth-js/tsconfig.json index 550ead33..d4d0929e 100644 --- a/packages/auth-js/tsconfig.json +++ b/packages/auth-js/tsconfig.json @@ -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" + } + ] } diff --git a/packages/auth-js/tsconfig.spec.json b/packages/auth-js/tsconfig.spec.json new file mode 100644 index 00000000..5abc897a --- /dev/null +++ b/packages/auth-js/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/bun-transpiler/package.json b/packages/bun-transpiler/package.json index 4cf85650..fdb3c9c5 100644 --- a/packages/bun-transpiler/package.json +++ b/packages/bun-transpiler/package.json @@ -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": { diff --git a/packages/bun-transpiler/tsconfig.build.json b/packages/bun-transpiler/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/bun-transpiler/tsconfig.build.json @@ -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": [] +} diff --git a/packages/bun-transpiler/tsconfig.json b/packages/bun-transpiler/tsconfig.json index 9f275945..d4d0929e 100644 --- a/packages/bun-transpiler/tsconfig.json +++ b/packages/bun-transpiler/tsconfig.json @@ -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" + } + ] } diff --git a/packages/bun-transpiler/tsconfig.spec.json b/packages/bun-transpiler/tsconfig.spec.json new file mode 100644 index 00000000..b97b42c9 --- /dev/null +++ b/packages/bun-transpiler/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/casbin/package.json b/packages/casbin/package.json index 64a5e1e2..5a6df7f6 100644 --- a/packages/casbin/package.json +++ b/packages/casbin/package.json @@ -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" } } diff --git a/packages/casbin/tsconfig.build.json b/packages/casbin/tsconfig.build.json new file mode 100644 index 00000000..72d37bcb --- /dev/null +++ b/packages/casbin/tsconfig.build.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "rootDir": "src", + "outDir": "dist", + "tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo", + "emitDeclarationOnly": false + }, + "include": ["./src/**/*.ts"], + "references": [] +} diff --git a/packages/casbin/tsconfig.json b/packages/casbin/tsconfig.json index 30b09682..d4d0929e 100644 --- a/packages/casbin/tsconfig.json +++ b/packages/casbin/tsconfig.json @@ -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" + } + ] } diff --git a/packages/casbin/tsconfig.spec.json b/packages/casbin/tsconfig.spec.json new file mode 100644 index 00000000..8182bfb1 --- /dev/null +++ b/packages/casbin/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/class-validator/package.json b/packages/class-validator/package.json index 3479cfee..07dc1eea 100644 --- a/packages/class-validator/package.json +++ b/packages/class-validator/package.json @@ -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": { diff --git a/packages/class-validator/src/index.test.ts b/packages/class-validator/src/index.test.ts index 9025fc3c..d234060c 100644 --- a/packages/class-validator/src/index.test.ts +++ b/packages/class-validator/src/index.test.ts @@ -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 } } } diff --git a/packages/class-validator/tsconfig.build.json b/packages/class-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/class-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/class-validator/tsconfig.json b/packages/class-validator/tsconfig.json index 61e8adc5..d4d0929e 100644 --- a/packages/class-validator/tsconfig.json +++ b/packages/class-validator/tsconfig.json @@ -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" + } + ] } diff --git a/packages/class-validator/tsconfig.spec.json b/packages/class-validator/tsconfig.spec.json new file mode 100644 index 00000000..c4c38349 --- /dev/null +++ b/packages/class-validator/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/class-validator/tsconfig.vitest.json b/packages/class-validator/tsconfig.vitest.json deleted file mode 100644 index 0695d1bd..00000000 --- a/packages/class-validator/tsconfig.vitest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"], - "emitDecoratorMetadata": true, - "experimentalDecorators": true - } -} diff --git a/packages/class-validator/vitest.config.ts b/packages/class-validator/vitest.config.ts index e406a162..5cc451db 100644 --- a/packages/class-validator/vitest.config.ts +++ b/packages/class-validator/vitest.config.ts @@ -4,7 +4,8 @@ export default defineProject({ test: { globals: true, typecheck: { - tsconfig: './tsconfig.vitest.json', + tsconfig: './tsconfig.json', + enabled: true, }, }, }) diff --git a/packages/clerk-auth/package.json b/packages/clerk-auth/package.json index 956d6916..8e94bb5a 100644 --- a/packages/clerk-auth/package.json +++ b/packages/clerk-auth/package.json @@ -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": { diff --git a/packages/clerk-auth/tsconfig.build.json b/packages/clerk-auth/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/clerk-auth/tsconfig.build.json @@ -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": [] +} diff --git a/packages/clerk-auth/tsconfig.json b/packages/clerk-auth/tsconfig.json index 103e4e38..d4d0929e 100644 --- a/packages/clerk-auth/tsconfig.json +++ b/packages/clerk-auth/tsconfig.json @@ -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" + } + ] } diff --git a/packages/clerk-auth/tsconfig.spec.json b/packages/clerk-auth/tsconfig.spec.json new file mode 100644 index 00000000..3cbbc47f --- /dev/null +++ b/packages/clerk-auth/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/cloudflare-access/package.json b/packages/cloudflare-access/package.json index 65d14710..e9a7df7e 100644 --- a/packages/cloudflare-access/package.json +++ b/packages/cloudflare-access/package.json @@ -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" } } diff --git a/packages/cloudflare-access/tsconfig.build.json b/packages/cloudflare-access/tsconfig.build.json new file mode 100644 index 00000000..4dcca72d --- /dev/null +++ b/packages/cloudflare-access/tsconfig.build.json @@ -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": [] +} diff --git a/packages/cloudflare-access/tsconfig.json b/packages/cloudflare-access/tsconfig.json index 60494f8f..d4d0929e 100644 --- a/packages/cloudflare-access/tsconfig.json +++ b/packages/cloudflare-access/tsconfig.json @@ -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" + } + ] } diff --git a/packages/cloudflare-access/tsconfig.spec.json b/packages/cloudflare-access/tsconfig.spec.json new file mode 100644 index 00000000..d5c39ccb --- /dev/null +++ b/packages/cloudflare-access/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/conform-validator/package.json b/packages/conform-validator/package.json index 9affb79d..17a6b6f4 100644 --- a/packages/conform-validator/package.json +++ b/packages/conform-validator/package.json @@ -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", diff --git a/packages/conform-validator/src/hook.test.ts b/packages/conform-validator/src/hook.test.ts index 459f96d2..821dd138 100644 --- a/packages/conform-validator/src/hook.test.ts +++ b/packages/conform-validator/src/hook.test.ts @@ -24,7 +24,7 @@ describe('Validate the hook option processing', () => { handlerMockFn ) const client = hc('http://localhost', { - fetch: (req, init) => { + fetch: (req: RequestInfo | URL, init?: RequestInit) => { return app.request(req, init) }, }) diff --git a/packages/conform-validator/src/valibot.test.ts b/packages/conform-validator/src/valibot.test.ts index faed1f74..2dc9ef1c 100644 --- a/packages/conform-validator/src/valibot.test.ts +++ b/packages/conform-validator/src/valibot.test.ts @@ -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('http://localhost', { - fetch: (req, init) => { + fetch: (req: RequestInfo | URL, init?: RequestInit) => { return app.request(req, init) }, }) diff --git a/packages/conform-validator/src/yup.test.ts b/packages/conform-validator/src/yup.test.ts index e17243b3..b7f8695f 100644 --- a/packages/conform-validator/src/yup.test.ts +++ b/packages/conform-validator/src/yup.test.ts @@ -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('http://localhost', { - fetch: (req, init) => { + fetch: (req: RequestInfo | URL, init?: RequestInit) => { return app.request(req, init) }, }) diff --git a/packages/conform-validator/src/zod.test.ts b/packages/conform-validator/src/zod.test.ts index d8a0ee5b..c542fabc 100644 --- a/packages/conform-validator/src/zod.test.ts +++ b/packages/conform-validator/src/zod.test.ts @@ -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('http://localhost', { - fetch: (req, init) => { + fetch: (req: RequestInfo | URL, init?: RequestInit) => { return app.request(req, init) }, }) diff --git a/packages/conform-validator/tsconfig.build.json b/packages/conform-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/conform-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/conform-validator/tsconfig.cjs.json b/packages/conform-validator/tsconfig.cjs.json deleted file mode 100644 index b8bf50ee..00000000 --- a/packages/conform-validator/tsconfig.cjs.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "CommonJS", - "declaration": false, - "outDir": "./dist/cjs" - } -} \ No newline at end of file diff --git a/packages/conform-validator/tsconfig.esm.json b/packages/conform-validator/tsconfig.esm.json deleted file mode 100644 index 8130f1a5..00000000 --- a/packages/conform-validator/tsconfig.esm.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "ESNext", - "declaration": true, - "outDir": "./dist/esm" - } -} \ No newline at end of file diff --git a/packages/conform-validator/tsconfig.json b/packages/conform-validator/tsconfig.json index 9f275945..d4d0929e 100644 --- a/packages/conform-validator/tsconfig.json +++ b/packages/conform-validator/tsconfig.json @@ -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" + } + ] } diff --git a/packages/conform-validator/tsconfig.spec.json b/packages/conform-validator/tsconfig.spec.json new file mode 100644 index 00000000..788532d1 --- /dev/null +++ b/packages/conform-validator/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/effect-validator/package.json b/packages/effect-validator/package.json index 0e143b7c..78663e66 100644 --- a/packages/effect-validator/package.json +++ b/packages/effect-validator/package.json @@ -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" } } diff --git a/packages/effect-validator/src/index.test.ts b/packages/effect-validator/src/index.test.ts index d2e3bedd..6132292e 100644 --- a/packages/effect-validator/src/index.test.ts +++ b/packages/effect-validator/src/index.test.ts @@ -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 } } } diff --git a/packages/effect-validator/tsconfig.build.json b/packages/effect-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/effect-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/effect-validator/tsconfig.json b/packages/effect-validator/tsconfig.json index 30b09682..d4d0929e 100644 --- a/packages/effect-validator/tsconfig.json +++ b/packages/effect-validator/tsconfig.json @@ -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" + } + ] } diff --git a/packages/effect-validator/tsconfig.spec.json b/packages/effect-validator/tsconfig.spec.json new file mode 100644 index 00000000..b99593c6 --- /dev/null +++ b/packages/effect-validator/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/esbuild-transpiler/package.json b/packages/esbuild-transpiler/package.json index 45ec2e49..83e18a49 100644 --- a/packages/esbuild-transpiler/package.json +++ b/packages/esbuild-transpiler/package.json @@ -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": { diff --git a/packages/esbuild-transpiler/tsconfig.build.json b/packages/esbuild-transpiler/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/esbuild-transpiler/tsconfig.build.json @@ -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": [] +} diff --git a/packages/esbuild-transpiler/tsconfig.json b/packages/esbuild-transpiler/tsconfig.json index f63ac453..d4d0929e 100644 --- a/packages/esbuild-transpiler/tsconfig.json +++ b/packages/esbuild-transpiler/tsconfig.json @@ -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" + } + ] } diff --git a/packages/esbuild-transpiler/tsconfig.spec.json b/packages/esbuild-transpiler/tsconfig.spec.json new file mode 100644 index 00000000..0c8781e6 --- /dev/null +++ b/packages/esbuild-transpiler/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 83578bc4..ba9d5b0d 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -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", diff --git a/packages/event-emitter/package.json b/packages/event-emitter/package.json index f8df3131..940c3b40 100644 --- a/packages/event-emitter/package.json +++ b/packages/event-emitter/package.json @@ -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": { diff --git a/packages/event-emitter/tsconfig.build.json b/packages/event-emitter/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/event-emitter/tsconfig.build.json @@ -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": [] +} diff --git a/packages/event-emitter/tsconfig.json b/packages/event-emitter/tsconfig.json index 9f275945..d4d0929e 100644 --- a/packages/event-emitter/tsconfig.json +++ b/packages/event-emitter/tsconfig.json @@ -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" + } + ] } diff --git a/packages/event-emitter/tsconfig.spec.json b/packages/event-emitter/tsconfig.spec.json new file mode 100644 index 00000000..57c7b86d --- /dev/null +++ b/packages/event-emitter/tsconfig.spec.json @@ -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" + } + ] +} diff --git a/packages/firebase-auth/package.json b/packages/firebase-auth/package.json index 2972267e..04a96e7f 100644 --- a/packages/firebase-auth/package.json +++ b/packages/firebase-auth/package.json @@ -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" } } diff --git a/packages/firebase-auth/tsconfig.build.json b/packages/firebase-auth/tsconfig.build.json new file mode 100644 index 00000000..26c17ea5 --- /dev/null +++ b/packages/firebase-auth/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "dist", + "types": ["@cloudflare/workers-types"] + }, + "references": [] +} diff --git a/packages/firebase-auth/tsconfig.json b/packages/firebase-auth/tsconfig.json index f8678c52..d4d0929e 100644 --- a/packages/firebase-auth/tsconfig.json +++ b/packages/firebase-auth/tsconfig.json @@ -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" + } + ] } diff --git a/packages/firebase-auth/tsconfig.spec.json b/packages/firebase-auth/tsconfig.spec.json new file mode 100644 index 00000000..fd8c3cc0 --- /dev/null +++ b/packages/firebase-auth/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/firebase-auth", + "noEmit": true + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/graphql-server/package.json b/packages/graphql-server/package.json index 4256dec4..53c7107f 100644 --- a/packages/graphql-server/package.json +++ b/packages/graphql-server/package.json @@ -31,6 +31,7 @@ "build": "tsup ./src/index.ts", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "peerDependencies": { @@ -41,9 +42,9 @@ }, "devDependencies": { "@arethetypeswrong/cli": "^0.17.4", - "@cloudflare/workers-types": "^3.14.0", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" }, "engines": { diff --git a/packages/graphql-server/tsconfig.build.json b/packages/graphql-server/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/graphql-server/tsconfig.build.json @@ -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": [] +} diff --git a/packages/graphql-server/tsconfig.json b/packages/graphql-server/tsconfig.json index 103e4e38..d4d0929e 100644 --- a/packages/graphql-server/tsconfig.json +++ b/packages/graphql-server/tsconfig.json @@ -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" + } + ] } diff --git a/packages/graphql-server/tsconfig.spec.json b/packages/graphql-server/tsconfig.spec.json new file mode 100644 index 00000000..98883968 --- /dev/null +++ b/packages/graphql-server/tsconfig.spec.json @@ -0,0 +1,14 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/graphql-server", + "types": ["vitest/globals"] + }, + "exclude": ["bun_test"], + + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/hello/package.json b/packages/hello/package.json index ce1c2751..715c6bf4 100644 --- a/packages/hello/package.json +++ b/packages/hello/package.json @@ -12,6 +12,7 @@ "build": "tsup ./src/index.ts", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "exports": { @@ -44,6 +45,7 @@ "@arethetypeswrong/cli": "^0.17.4", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" } } diff --git a/packages/hello/tsconfig.build.json b/packages/hello/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/hello/tsconfig.build.json @@ -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": [] +} diff --git a/packages/hello/tsconfig.json b/packages/hello/tsconfig.json index 9f275945..d4d0929e 100644 --- a/packages/hello/tsconfig.json +++ b/packages/hello/tsconfig.json @@ -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" + } + ] } diff --git a/packages/hello/tsconfig.spec.json b/packages/hello/tsconfig.spec.json new file mode 100644 index 00000000..f1428dff --- /dev/null +++ b/packages/hello/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/hello", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/medley-router/package.json b/packages/medley-router/package.json index c130aab1..0c1ae138 100644 --- a/packages/medley-router/package.json +++ b/packages/medley-router/package.json @@ -13,6 +13,7 @@ "build": "tsup ./src/index.ts", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "exports": { @@ -45,6 +46,7 @@ "@arethetypeswrong/cli": "^0.17.4", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" }, "dependencies": { diff --git a/packages/medley-router/src/router.ts b/packages/medley-router/src/router.ts index eb11b28d..f1c10c3e 100644 --- a/packages/medley-router/src/router.ts +++ b/packages/medley-router/src/router.ts @@ -2,6 +2,8 @@ // @ts-ignore import OriginalRouter from '@medley/router' // Should be exported from `hono/router` +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore import type { Result, Router } from 'hono/dist/types/router' export class MedleyRouter implements Router { diff --git a/packages/medley-router/tsconfig.build.json b/packages/medley-router/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/medley-router/tsconfig.build.json @@ -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": [] +} diff --git a/packages/medley-router/tsconfig.json b/packages/medley-router/tsconfig.json index 103e4e38..d4d0929e 100644 --- a/packages/medley-router/tsconfig.json +++ b/packages/medley-router/tsconfig.json @@ -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" + } + ] } diff --git a/packages/medley-router/tsconfig.spec.json b/packages/medley-router/tsconfig.spec.json new file mode 100644 index 00000000..bef87b66 --- /dev/null +++ b/packages/medley-router/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/medley-router", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/node-ws/package.json b/packages/node-ws/package.json index 31dce0dd..c925f215 100644 --- a/packages/node-ws/package.json +++ b/packages/node-ws/package.json @@ -13,6 +13,7 @@ "build": "tsup ./src/index.ts", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "exports": { @@ -41,10 +42,9 @@ "devDependencies": { "@arethetypeswrong/cli": "^0.17.4", "@hono/node-server": "^1.11.1", - "@types/node": "^20.14.8", - "@types/ws": "^8.18.0", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" }, "dependencies": { @@ -57,4 +57,4 @@ "engines": { "node": ">=18.14.1" } -} +} \ No newline at end of file diff --git a/packages/node-ws/src/index.test.ts b/packages/node-ws/src/index.test.ts index 7240c42a..e27792d6 100644 --- a/packages/node-ws/src/index.test.ts +++ b/packages/node-ws/src/index.test.ts @@ -1,4 +1,6 @@ import { serve } from '@hono/node-server' +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore import type { ServerType } from '@hono/node-server/dist/types' import { Hono } from 'hono' import type { WSMessageReceive } from 'hono/ws' diff --git a/packages/node-ws/tsconfig.build.json b/packages/node-ws/tsconfig.build.json new file mode 100644 index 00000000..ddfdcb10 --- /dev/null +++ b/packages/node-ws/tsconfig.build.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "rootDir": "src", + "outDir": "dist", + "tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo", + "emitDeclarationOnly": false, + "types": ["node", "ws"] + }, + "include": ["src/**/*.ts"], + "exclude": ["**/*.test.ts"], + "references": [] +} diff --git a/packages/node-ws/tsconfig.json b/packages/node-ws/tsconfig.json index 869e4530..d4d0929e 100644 --- a/packages/node-ws/tsconfig.json +++ b/packages/node-ws/tsconfig.json @@ -1,7 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./dist", - "types": ["node", "vitest/globals", "ws"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/node-ws/tsconfig.spec.json b/packages/node-ws/tsconfig.spec.json new file mode 100644 index 00000000..6c34c5e0 --- /dev/null +++ b/packages/node-ws/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/node-ws", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/oauth-providers/package.json b/packages/oauth-providers/package.json index 55b99ddb..e5e7f6b1 100644 --- a/packages/oauth-providers/package.json +++ b/packages/oauth-providers/package.json @@ -13,6 +13,7 @@ "build": "tsup ./src/index.ts ./src/providers/**/index.ts ./src/providers/**/types.ts --no-splitting", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "exports": { @@ -70,6 +71,7 @@ "msw": "^2.0.11", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" }, "engines": { diff --git a/packages/oauth-providers/tsconfig.build.json b/packages/oauth-providers/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/oauth-providers/tsconfig.build.json @@ -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": [] +} diff --git a/packages/oauth-providers/tsconfig.json b/packages/oauth-providers/tsconfig.json index 103e4e38..d4d0929e 100644 --- a/packages/oauth-providers/tsconfig.json +++ b/packages/oauth-providers/tsconfig.json @@ -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" + } + ] } diff --git a/packages/oauth-providers/tsconfig.spec.json b/packages/oauth-providers/tsconfig.spec.json new file mode 100644 index 00000000..34b7316d --- /dev/null +++ b/packages/oauth-providers/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/oauth-providers", + "types": ["vitest/globals"] + }, + "include": ["mocks.ts", "**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/oidc-auth/package.json b/packages/oidc-auth/package.json index 5c44249e..cdf49921 100644 --- a/packages/oidc-auth/package.json +++ b/packages/oidc-auth/package.json @@ -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 @@ "jsonwebtoken": "^9.0.2", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" }, "dependencies": { diff --git a/packages/oidc-auth/tsconfig.build.json b/packages/oidc-auth/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/oidc-auth/tsconfig.build.json @@ -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": [] +} diff --git a/packages/oidc-auth/tsconfig.json b/packages/oidc-auth/tsconfig.json index 26687d28..d4d0929e 100644 --- a/packages/oidc-auth/tsconfig.json +++ b/packages/oidc-auth/tsconfig.json @@ -1,8 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "module": "ESNext", - "outDir": "./dist", - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/oidc-auth/tsconfig.spec.json b/packages/oidc-auth/tsconfig.spec.json new file mode 100644 index 00000000..13981866 --- /dev/null +++ b/packages/oidc-auth/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/oidc-auth", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/otel/package.json b/packages/otel/package.json index f68132a4..f19e3291 100644 --- a/packages/otel/package.json +++ b/packages/otel/package.json @@ -12,6 +12,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 @@ "@opentelemetry/sdk-trace-node": "^1.30.0", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" } } diff --git a/packages/otel/tsconfig.build.json b/packages/otel/tsconfig.build.json new file mode 100644 index 00000000..66b0baa9 --- /dev/null +++ b/packages/otel/tsconfig.build.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "rootDir": "src", + "outDir": "dist", + "tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo", + "emitDeclarationOnly": false + }, + "include": ["package.json", "src/**/*.ts"], + "exclude": ["**/*.test.ts"], + "references": [] +} diff --git a/packages/otel/tsconfig.json b/packages/otel/tsconfig.json index 4aa90bfc..d4d0929e 100644 --- a/packages/otel/tsconfig.json +++ b/packages/otel/tsconfig.json @@ -1,9 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./dist", - "module": "ESNext", - "resolveJsonModule": true, - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/otel/tsconfig.spec.json b/packages/otel/tsconfig.spec.json new file mode 100644 index 00000000..13981866 --- /dev/null +++ b/packages/otel/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/oidc-auth", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/prometheus/package.json b/packages/prometheus/package.json index e6d63fa8..bcebb705 100644 --- a/packages/prometheus/package.json +++ b/packages/prometheus/package.json @@ -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 @@ "prom-client": "^15.0.0", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" } } diff --git a/packages/prometheus/tsconfig.build.json b/packages/prometheus/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/prometheus/tsconfig.build.json @@ -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": [] +} diff --git a/packages/prometheus/tsconfig.json b/packages/prometheus/tsconfig.json index 103e4e38..d4d0929e 100644 --- a/packages/prometheus/tsconfig.json +++ b/packages/prometheus/tsconfig.json @@ -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" + } + ] } diff --git a/packages/prometheus/tsconfig.spec.json b/packages/prometheus/tsconfig.spec.json new file mode 100644 index 00000000..084707d0 --- /dev/null +++ b/packages/prometheus/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/prometheus", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/qwik-city/package.json b/packages/qwik-city/package.json index efa892f1..76f31164 100644 --- a/packages/qwik-city/package.json +++ b/packages/qwik-city/package.json @@ -11,7 +11,8 @@ "scripts": { "build": "tsup ./src/index.ts", "prepack": "yarn build", - "publint": "attw --pack && publint" + "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json" }, "exports": { ".": { @@ -46,7 +47,8 @@ "@builder.io/qwik": "^1.2.0", "@builder.io/qwik-city": "^1.2.0", "publint": "^0.3.9", - "tsup": "^8.4.0" + "tsup": "^8.4.0", + "typescript": "^5.8.2" }, "engines": { "node": ">=18" diff --git a/packages/qwik-city/tsconfig.build.json b/packages/qwik-city/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/qwik-city/tsconfig.build.json @@ -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": [] +} diff --git a/packages/qwik-city/tsconfig.json b/packages/qwik-city/tsconfig.json index b4e69ae1..4398f303 100644 --- a/packages/qwik-city/tsconfig.json +++ b/packages/qwik-city/tsconfig.json @@ -1,6 +1,10 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "dist" - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] } diff --git a/packages/react-compat/package.json b/packages/react-compat/package.json index e4c99642..f7bc0088 100644 --- a/packages/react-compat/package.json +++ b/packages/react-compat/package.json @@ -12,7 +12,8 @@ "scripts": { "build": "tsup ./src", "prepack": "yarn build", - "publint": "attw --pack && publint" + "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json" }, "exports": { ".": { @@ -30,6 +31,7 @@ "devDependencies": { "@arethetypeswrong/cli": "^0.17.4", "publint": "^0.3.9", - "tsup": "^8.4.0" + "tsup": "^8.4.0", + "typescript": "^5.8.2" } } diff --git a/packages/react-compat/tsconfig.build.json b/packages/react-compat/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/react-compat/tsconfig.build.json @@ -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": [] +} diff --git a/packages/react-compat/tsconfig.json b/packages/react-compat/tsconfig.json index 9f275945..4398f303 100644 --- a/packages/react-compat/tsconfig.json +++ b/packages/react-compat/tsconfig.json @@ -1,6 +1,10 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./dist" - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] } diff --git a/packages/react-renderer/package.json b/packages/react-renderer/package.json index ad29b6df..df392532 100644 --- a/packages/react-renderer/package.json +++ b/packages/react-renderer/package.json @@ -12,6 +12,7 @@ "build": "tsup ./src/index.ts", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "exports": { @@ -51,6 +52,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" }, "engines": { diff --git a/packages/react-renderer/tsconfig.build.json b/packages/react-renderer/tsconfig.build.json new file mode 100644 index 00000000..55295897 --- /dev/null +++ b/packages/react-renderer/tsconfig.build.json @@ -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.tsx"], + "references": [] +} diff --git a/packages/react-renderer/tsconfig.json b/packages/react-renderer/tsconfig.json index 8db7eb41..d4d0929e 100644 --- a/packages/react-renderer/tsconfig.json +++ b/packages/react-renderer/tsconfig.json @@ -1,10 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "module": "ESNext", - "outDir": "./dist", - "jsx": "react-jsx", - "jsxImportSource": "react", - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/react-renderer/tsconfig.spec.json b/packages/react-renderer/tsconfig.spec.json new file mode 100644 index 00000000..b7fe69a3 --- /dev/null +++ b/packages/react-renderer/tsconfig.spec.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "module": "es2022", + "moduleResolution": "bundler", + "jsx": "react-jsx", + "jsxImportSource": "react", + "outDir": "../../dist/out-tsc/packages/react-renderer", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.tsx"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/sentry/package.json b/packages/sentry/package.json index c5f350b2..12cf7a98 100644 --- a/packages/sentry/package.json +++ b/packages/sentry/package.json @@ -12,6 +12,7 @@ "build": "tsup ./src/index.ts", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "exports": { @@ -48,6 +49,7 @@ "@arethetypeswrong/cli": "^0.17.4", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" } } diff --git a/packages/sentry/tsconfig.build.json b/packages/sentry/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/sentry/tsconfig.build.json @@ -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": [] +} diff --git a/packages/sentry/tsconfig.json b/packages/sentry/tsconfig.json index 103e4e38..d4d0929e 100644 --- a/packages/sentry/tsconfig.json +++ b/packages/sentry/tsconfig.json @@ -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" + } + ] } diff --git a/packages/sentry/tsconfig.spec.json b/packages/sentry/tsconfig.spec.json new file mode 100644 index 00000000..862ee1f7 --- /dev/null +++ b/packages/sentry/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/sentry", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/standard-validator/package.json b/packages/standard-validator/package.json index 23a52dc0..35c43bfe 100644 --- a/packages/standard-validator/package.json +++ b/packages/standard-validator/package.json @@ -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", @@ -48,6 +49,7 @@ "arktype": "^2.0.0-rc.26", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "valibot": "^1.0.0-beta.9", "vitest": "^3.0.8", "zod": "^3.24.0" diff --git a/packages/standard-validator/src/__schemas__/arktype.ts b/packages/standard-validator/src/__schemas__/arktype.ts index 33167f31..3f0fb8d6 100644 --- a/packages/standard-validator/src/__schemas__/arktype.ts +++ b/packages/standard-validator/src/__schemas__/arktype.ts @@ -23,7 +23,6 @@ const queryPaginationSchema = type({ }) const querySortSchema = type({ - order: "'asc'|'desc'", }) diff --git a/packages/standard-validator/tsconfig.build.json b/packages/standard-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/standard-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/standard-validator/tsconfig.json b/packages/standard-validator/tsconfig.json index dcc1e9e9..d4d0929e 100644 --- a/packages/standard-validator/tsconfig.json +++ b/packages/standard-validator/tsconfig.json @@ -1,6 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/standard-validator/tsconfig.spec.json b/packages/standard-validator/tsconfig.spec.json new file mode 100644 index 00000000..95db8fbc --- /dev/null +++ b/packages/standard-validator/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/standard-validator", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/swagger-editor/package.json b/packages/swagger-editor/package.json index 62c70fb7..26cb561b 100644 --- a/packages/swagger-editor/package.json +++ b/packages/swagger-editor/package.json @@ -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", @@ -45,6 +46,7 @@ "@arethetypeswrong/cli": "^0.17.4", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" } } diff --git a/packages/swagger-editor/tsconfig.build.json b/packages/swagger-editor/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/swagger-editor/tsconfig.build.json @@ -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": [] +} diff --git a/packages/swagger-editor/tsconfig.json b/packages/swagger-editor/tsconfig.json index dcc1e9e9..d4d0929e 100644 --- a/packages/swagger-editor/tsconfig.json +++ b/packages/swagger-editor/tsconfig.json @@ -1,6 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/swagger-editor/tsconfig.spec.json b/packages/swagger-editor/tsconfig.spec.json new file mode 100644 index 00000000..abc354fe --- /dev/null +++ b/packages/swagger-editor/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/swagger-editor", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/swagger-ui/package.json b/packages/swagger-ui/package.json index 8a57e5c3..4353ab0f 100644 --- a/packages/swagger-ui/package.json +++ b/packages/swagger-ui/package.json @@ -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", @@ -46,6 +47,7 @@ "@types/swagger-ui-dist": "^3.30.5", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" } } diff --git a/packages/swagger-ui/tsconfig.build.json b/packages/swagger-ui/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/swagger-ui/tsconfig.build.json @@ -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": [] +} diff --git a/packages/swagger-ui/tsconfig.json b/packages/swagger-ui/tsconfig.json index dcc1e9e9..d4d0929e 100644 --- a/packages/swagger-ui/tsconfig.json +++ b/packages/swagger-ui/tsconfig.json @@ -1,6 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/swagger-ui/tsconfig.spec.json b/packages/swagger-ui/tsconfig.spec.json new file mode 100644 index 00000000..fc4118de --- /dev/null +++ b/packages/swagger-ui/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/swagger-ui", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/trpc-server/package.json b/packages/trpc-server/package.json index ede39225..842738fe 100644 --- a/packages/trpc-server/package.json +++ b/packages/trpc-server/package.json @@ -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 @@ "@trpc/server": "^11.0.0", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8", "zod": "^3.20.2" }, diff --git a/packages/trpc-server/tsconfig.build.json b/packages/trpc-server/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/trpc-server/tsconfig.build.json @@ -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": [] +} diff --git a/packages/trpc-server/tsconfig.json b/packages/trpc-server/tsconfig.json index dcc1e9e9..d4d0929e 100644 --- a/packages/trpc-server/tsconfig.json +++ b/packages/trpc-server/tsconfig.json @@ -1,6 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/trpc-server/tsconfig.spec.json b/packages/trpc-server/tsconfig.spec.json new file mode 100644 index 00000000..40353fb6 --- /dev/null +++ b/packages/trpc-server/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/trpc-server", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/tsyringe/package.json b/packages/tsyringe/package.json index 599f64f2..602ec173 100644 --- a/packages/tsyringe/package.json +++ b/packages/tsyringe/package.json @@ -12,6 +12,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 @@ "reflect-metadata": "^0.2.2", "tsup": "^8.4.0", "tsyringe": "^4.8.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" } } diff --git a/packages/tsyringe/tsconfig.build.json b/packages/tsyringe/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/tsyringe/tsconfig.build.json @@ -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": [] +} diff --git a/packages/tsyringe/tsconfig.json b/packages/tsyringe/tsconfig.json index d0f6fbf3..d4d0929e 100644 --- a/packages/tsyringe/tsconfig.json +++ b/packages/tsyringe/tsconfig.json @@ -1,9 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./dist", - "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/tsyringe/tsconfig.spec.json b/packages/tsyringe/tsconfig.spec.json new file mode 100644 index 00000000..294f126f --- /dev/null +++ b/packages/tsyringe/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/tsyringe", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/typebox-validator/package.json b/packages/typebox-validator/package.json index 45caa1bd..0c722cc1 100644 --- a/packages/typebox-validator/package.json +++ b/packages/typebox-validator/package.json @@ -24,6 +24,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 @@ "@sinclair/typebox": "^0.31.15", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8" } } diff --git a/packages/typebox-validator/src/index.test.ts b/packages/typebox-validator/src/index.test.ts index 5d416bcf..6ba60641 100644 --- a/packages/typebox-validator/src/index.test.ts +++ b/packages/typebox-validator/src/index.test.ts @@ -1,6 +1,7 @@ import { Type as T } from '@sinclair/typebox' import type { ValueError } from '@sinclair/typebox/value' import { Hono } from 'hono' +import type { ContentfulStatusCode } from 'hono/utils/http-status' import type { Equal, Expect } from 'hono/utils/types' import { tbValidator } from '.' @@ -37,6 +38,8 @@ describe('Basic', () => { success: boolean message: string } + outputFormat: 'json' + status: ContentfulStatusCode } } } diff --git a/packages/typebox-validator/tsconfig.build.json b/packages/typebox-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/typebox-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/typebox-validator/tsconfig.json b/packages/typebox-validator/tsconfig.json index dcc1e9e9..d4d0929e 100644 --- a/packages/typebox-validator/tsconfig.json +++ b/packages/typebox-validator/tsconfig.json @@ -1,6 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/typebox-validator/tsconfig.spec.json b/packages/typebox-validator/tsconfig.spec.json new file mode 100644 index 00000000..3f4dce9c --- /dev/null +++ b/packages/typebox-validator/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/typebox-validator", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/typia-validator/package.json b/packages/typia-validator/package.json index 5e7f22ac..2d12ab7f 100644 --- a/packages/typia-validator/package.json +++ b/packages/typia-validator/package.json @@ -34,6 +34,7 @@ "build": "tsup ./src/index.ts ./src/http.ts", "prepack": "yarn build", "publint": "attw --pack --profile node16 && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "license": "MIT", @@ -56,6 +57,7 @@ "@ryoppippi/unplugin-typia": "^2.1.4", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "typia": "^8.0.3", "vitest": "^3.0.8" } diff --git a/packages/typia-validator/src/http.test.ts b/packages/typia-validator/src/http.test.ts index 9f3114e4..3f7b6580 100644 --- a/packages/typia-validator/src/http.test.ts +++ b/packages/typia-validator/src/http.test.ts @@ -1,4 +1,5 @@ import { Hono } from 'hono' +import type { ContentfulStatusCode } from 'hono/utils/http-status' import type { Equal, Expect } from 'hono/utils/types' import type { tags } from 'typia' import typia from 'typia' @@ -68,6 +69,8 @@ describe('Basic', () => { queryName: string | undefined headerCategory: ('x' | 'y' | 'z')[] } + outputFormat: 'json' + status: ContentfulStatusCode } } } @@ -158,6 +161,8 @@ describe('transform', () => { page: (0 | 1 | 2)[] categories: (0 | 1 | 2)[] } + outputFormat: 'json' + status: ContentfulStatusCode } } } @@ -417,6 +422,8 @@ describe('Case-Insensitive Headers', () => { header: HeaderSchema } output: HeaderSchema + outputFormat: 'json' + status: ContentfulStatusCode } } } diff --git a/packages/typia-validator/src/index.test.ts b/packages/typia-validator/src/index.test.ts index ed5822a0..8d4988d3 100644 --- a/packages/typia-validator/src/index.test.ts +++ b/packages/typia-validator/src/index.test.ts @@ -1,4 +1,5 @@ import { Hono } from 'hono' +import type { ContentfulStatusCode } from 'hono/utils/http-status' import type { Equal, Expect } from 'hono/utils/types' import type { tags } from 'typia' import typia from 'typia' @@ -36,6 +37,8 @@ describe('Basic', () => { success: boolean message: string } + outputFormat: 'json' + status: ContentfulStatusCode } } } diff --git a/packages/typia-validator/tsconfig.build.json b/packages/typia-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/typia-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/typia-validator/tsconfig.json b/packages/typia-validator/tsconfig.json index 6409810a..d4d0929e 100644 --- a/packages/typia-validator/tsconfig.json +++ b/packages/typia-validator/tsconfig.json @@ -1,11 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"] - }, - "plugins": [ + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ { - "transform": "typia/lib/transform" + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" } ] } diff --git a/packages/typia-validator/tsconfig.spec.json b/packages/typia-validator/tsconfig.spec.json new file mode 100644 index 00000000..914e7464 --- /dev/null +++ b/packages/typia-validator/tsconfig.spec.json @@ -0,0 +1,18 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/typia-validator", + "types": ["vitest/globals"] + }, + + "plugins": [ + { + "transform": "typia/lib/transform" + } + ], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/valibot-validator/package.json b/packages/valibot-validator/package.json index b20c7be4..e36ed3b7 100644 --- a/packages/valibot-validator/package.json +++ b/packages/valibot-validator/package.json @@ -18,6 +18,7 @@ "build": "tsup ./src/index.ts", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "license": "MIT", @@ -39,6 +40,7 @@ "@arethetypeswrong/cli": "^0.17.4", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "valibot": "^1.0.0", "vitest": "^3.0.8" } diff --git a/packages/valibot-validator/src/index.test.ts b/packages/valibot-validator/src/index.test.ts index 09f475d9..690c12a6 100644 --- a/packages/valibot-validator/src/index.test.ts +++ b/packages/valibot-validator/src/index.test.ts @@ -1,5 +1,5 @@ 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 { number, object, objectAsync, optional, optionalAsync, string } from 'valibot' import { vValidator } from '.' @@ -58,8 +58,8 @@ describe('Basic', () => { success: boolean message: string } - status: StatusCode outputFormat: 'json' + status: ContentfulStatusCode } } } @@ -217,8 +217,8 @@ describe('Async', () => { success: boolean message: string } - status: StatusCode outputFormat: 'json' + status: ContentfulStatusCode } } } diff --git a/packages/valibot-validator/tsconfig.build.json b/packages/valibot-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/valibot-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/valibot-validator/tsconfig.json b/packages/valibot-validator/tsconfig.json index dcc1e9e9..d4d0929e 100644 --- a/packages/valibot-validator/tsconfig.json +++ b/packages/valibot-validator/tsconfig.json @@ -1,6 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/valibot-validator/tsconfig.spec.json b/packages/valibot-validator/tsconfig.spec.json new file mode 100644 index 00000000..90b7df89 --- /dev/null +++ b/packages/valibot-validator/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/valibot-validator", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/zod-openapi/package.json b/packages/zod-openapi/package.json index 583cdf07..b678b8c8 100644 --- a/packages/zod-openapi/package.json +++ b/packages/zod-openapi/package.json @@ -12,6 +12,7 @@ "build": "tsup ./src/index.ts", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "exports": { @@ -45,6 +46,7 @@ "@arethetypeswrong/cli": "^0.17.4", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8", "yaml": "^2.4.3", "zod": "^3.22.1" diff --git a/packages/zod-openapi/src/handler.test-d.ts b/packages/zod-openapi/src/handler.test-d.ts index 4ab7bef4..14750fc5 100644 --- a/packages/zod-openapi/src/handler.test-d.ts +++ b/packages/zod-openapi/src/handler.test-d.ts @@ -1,7 +1,6 @@ import type { MiddlewareHandler } from 'hono' import type { Equal, Expect } from 'hono/utils/types' import type { MiddlewareToHandlerType, OfHandlerType, RouteHandler } from '.' - import { OpenAPIHono, createRoute, z } from '.' describe('supports async handler', () => { diff --git a/packages/zod-openapi/src/index.test-d.ts b/packages/zod-openapi/src/index.test-d.ts index 349ed13e..99865105 100644 --- a/packages/zod-openapi/src/index.test-d.ts +++ b/packages/zod-openapi/src/index.test-d.ts @@ -1,7 +1,6 @@ import { createMiddleware } from 'hono/factory' import type { ExtractSchema } from 'hono/types' import type { Equal, Expect } from 'hono/utils/types' -import { assertType, describe, it } from 'vitest' import { OpenAPIHono, createRoute, z } from './index' import type { MiddlewareToHandlerType, OfHandlerType } from './index' diff --git a/packages/zod-openapi/tsconfig.build.json b/packages/zod-openapi/tsconfig.build.json new file mode 100644 index 00000000..59a0ad18 --- /dev/null +++ b/packages/zod-openapi/tsconfig.build.json @@ -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", "**/*.test-d.ts"], + "references": [{ "path": "../zod-validator/tsconfig.json" }] +} diff --git a/packages/zod-openapi/tsconfig.json b/packages/zod-openapi/tsconfig.json index dcc1e9e9..d4d0929e 100644 --- a/packages/zod-openapi/tsconfig.json +++ b/packages/zod-openapi/tsconfig.json @@ -1,6 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/zod-openapi/tsconfig.spec.json b/packages/zod-openapi/tsconfig.spec.json new file mode 100644 index 00000000..191c0270 --- /dev/null +++ b/packages/zod-openapi/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/zod-openapi", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/packages/zod-validator/package.json b/packages/zod-validator/package.json index 7a328266..3e6d6c9b 100644 --- a/packages/zod-validator/package.json +++ b/packages/zod-validator/package.json @@ -8,8 +8,14 @@ "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/index.js", - "default": "./dist/index.cjs" + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" + } } }, "files": [ @@ -19,6 +25,7 @@ "build": "tsup ./src/index.ts", "prepack": "yarn build", "publint": "attw --pack && publint", + "typecheck": "tsc -b tsconfig.json", "test": "vitest" }, "license": "MIT", @@ -40,6 +47,7 @@ "@arethetypeswrong/cli": "^0.17.4", "publint": "^0.3.9", "tsup": "^8.4.0", + "typescript": "^5.8.2", "vitest": "^3.0.8", "zod": "^3.22.4" } diff --git a/packages/zod-validator/src/index.test.ts b/packages/zod-validator/src/index.test.ts index 5ab21389..23e21bd8 100644 --- a/packages/zod-validator/src/index.test.ts +++ b/packages/zod-validator/src/index.test.ts @@ -1,4 +1,5 @@ import { Hono } from 'hono' +import type { ContentfulStatusCode } from 'hono/utils/http-status' import type { Equal, Expect } from 'hono/utils/types' import { vi } from 'vitest' import { z } from 'zod' @@ -58,6 +59,8 @@ describe('Basic', () => { message: string queryName: string | undefined } + outputFormat: 'json' + status: ContentfulStatusCode } } } @@ -129,6 +132,8 @@ describe('coerce', () => { output: { page: number } + outputFormat: 'json' + status: ContentfulStatusCode } } } @@ -333,6 +338,8 @@ describe('Only Types', () => { output: { order: 'asc' | 'desc' } + outputFormat: 'json' + status: ContentfulStatusCode } } } @@ -363,6 +370,8 @@ describe('Case-Insensitive Headers', () => { header: z.infer } output: z.infer + outputFormat: 'json' + status: ContentfulStatusCode } } } diff --git a/packages/zod-validator/tsconfig.build.json b/packages/zod-validator/tsconfig.build.json new file mode 100644 index 00000000..ccc2f65a --- /dev/null +++ b/packages/zod-validator/tsconfig.build.json @@ -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": [] +} diff --git a/packages/zod-validator/tsconfig.cjs.json b/packages/zod-validator/tsconfig.cjs.json deleted file mode 100644 index b8bf50ee..00000000 --- a/packages/zod-validator/tsconfig.cjs.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "CommonJS", - "declaration": false, - "outDir": "./dist/cjs" - } -} \ No newline at end of file diff --git a/packages/zod-validator/tsconfig.esm.json b/packages/zod-validator/tsconfig.esm.json deleted file mode 100644 index 8130f1a5..00000000 --- a/packages/zod-validator/tsconfig.esm.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "ESNext", - "declaration": true, - "outDir": "./dist/esm" - } -} \ No newline at end of file diff --git a/packages/zod-validator/tsconfig.json b/packages/zod-validator/tsconfig.json index dcc1e9e9..d4d0929e 100644 --- a/packages/zod-validator/tsconfig.json +++ b/packages/zod-validator/tsconfig.json @@ -1,6 +1,13 @@ { - "extends": "../../tsconfig.json", - "compilerOptions": { - "types": ["vitest/globals"] - } + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.build.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/zod-validator/tsconfig.spec.json b/packages/zod-validator/tsconfig.spec.json new file mode 100644 index 00000000..460b123b --- /dev/null +++ b/packages/zod-validator/tsconfig.spec.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc/packages/zod-validator", + "types": ["vitest/globals"] + }, + "include": ["**/*.test.ts"], + "references": [ + { + "path": "./tsconfig.build.json" + } + ] +} diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 00000000..0ec210d0 --- /dev/null +++ b/tsconfig.base.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "esnext", + "composite": true, + "declaration": true, + "declarationMap": true, + "moduleResolution": "bundler", + "esModuleInterop": true, + "emitDeclarationOnly": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "noUnusedLocals": false, + "noUnusedParameters": true, + "types": [] + } +} diff --git a/tsconfig.json b/tsconfig.json index 5c38be16..729f1639 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,44 @@ { + "extends": "./tsconfig.base.json", "compilerOptions": { - "target": "ES2022", - "module": "commonjs", - "declaration": true, - "moduleResolution": "Node", - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true, - "noUnusedLocals": false, - "noUnusedParameters": true, - "types": ["node", "@cloudflare/workers-types"] - } + "noEmit": true + }, + "files": [], + "references": [ + { "path": "packages/ajv-validator" }, + { "path": "packages/arktype-validator" }, + { "path": "packages/auth-js" }, + { "path": "packages/bun-transpiler" }, + { "path": "packages/casbin" }, + { "path": "packages/class-validator" }, + { "path": "packages/clerk-auth" }, + { "path": "packages/cloudflare-access" }, + { "path": "packages/conform-validator" }, + { "path": "packages/effect-validator" }, + { "path": "packages/esbuild-transpiler" }, + { "path": "packages/event-emitter" }, + { "path": "packages/firebase-auth" }, + { "path": "packages/graphql-server" }, + { "path": "packages/hello" }, + { "path": "packages/medley-router" }, + { "path": "packages/node-ws" }, + { "path": "packages/oauth-providers" }, + { "path": "packages/oidc-auth" }, + { "path": "packages/otel" }, + { "path": "packages/prometheus" }, + { "path": "packages/qwik-city" }, + { "path": "packages/react-compat" }, + { "path": "packages/react-renderer" }, + { "path": "packages/sentry" }, + { "path": "packages/standard-validator" }, + { "path": "packages/swagger-editor" }, + { "path": "packages/swagger-ui" }, + { "path": "packages/trpc-server" }, + { "path": "packages/tsyringe" }, + { "path": "packages/typebox-validator" }, + { "path": "packages/typia-validator" }, + { "path": "packages/valibot-validator" }, + { "path": "packages/zod-openapi" }, + { "path": "packages/zod-validator" } + ] } diff --git a/tsconfig.tsup.json b/tsconfig.tsup.json new file mode 100644 index 00000000..2c136612 --- /dev/null +++ b/tsconfig.tsup.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "jsx": "react", + "types": ["@cloudflare/workers-types", "node", "ws"] + } +} diff --git a/tsup.config.ts b/tsup.config.ts index b3e00b1a..58560943 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -6,5 +6,5 @@ export default defineConfig((overrideOptions) => ({ dts: true, format: ['cjs', 'esm'], outDir: 'dist', - tsconfig: 'tsconfig.json', + tsconfig: 'tsconfig.tsup.json', })) diff --git a/yarn.lock b/yarn.lock index 74328493..8bb033f7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -815,13 +815,6 @@ __metadata: languageName: node linkType: hard -"@cloudflare/workers-types@npm:^3.14.0": - version: 3.19.0 - resolution: "@cloudflare/workers-types@npm:3.19.0" - checksum: 3b899caeb7c8b5fcf9b7c4fb5cacedcd94bae5be6861ee5122a74029ae4119c9f5194359c7a9327bc4f860e8de961b37e29c67089c7271741bf507034ba86e89 - languageName: node - linkType: hard - "@cloudflare/workers-types@npm:^4.20230307.0": version: 4.20250321.0 resolution: "@cloudflare/workers-types@npm:4.20250321.0" @@ -829,13 +822,6 @@ __metadata: languageName: node linkType: hard -"@cloudflare/workers-types@npm:^4.20240222.0": - version: 4.20240222.0 - resolution: "@cloudflare/workers-types@npm:4.20240222.0" - checksum: b1b4af08fae1040112e9acd38e6d762c8537a2548d816da4d3bb9a3a16cd380ffd8abf802b5a7ac38ca86676ccb5744046d637a3601f1e93a7299f06db7df93e - languageName: node - linkType: hard - "@colors/colors@npm:1.5.0": version: 1.5.0 resolution: "@colors/colors@npm:1.5.0" @@ -1651,7 +1637,7 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^3.1.0, @eslint/eslintrc@npm:^3.3.1": +"@eslint/eslintrc@npm:^3.3.1": version: 3.3.1 resolution: "@eslint/eslintrc@npm:3.3.1" dependencies: @@ -1805,6 +1791,7 @@ __metadata: ajv: "npm:>=8.12.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: ajv: ">=8.12.0" @@ -1820,6 +1807,7 @@ __metadata: arktype: "npm:^2.0.0-dev.14" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: arktype: ^2.0.0-dev.14 @@ -1837,6 +1825,7 @@ __metadata: publint: "npm:^0.3.9" react: "npm:^18.2.0" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: "@auth/core": 0.* @@ -1853,6 +1842,7 @@ __metadata: "@types/bun": "npm:^1.0.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: "*" @@ -1867,6 +1857,7 @@ __metadata: casbin: "npm:^5.30.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: casbin: ">=5.30.0" @@ -1884,6 +1875,7 @@ __metadata: publint: "npm:^0.3.9" reflect-metadata: "npm:^0.2.2" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: ">=3.9.0" @@ -1900,6 +1892,7 @@ __metadata: publint: "npm:^0.3.9" react: "npm:^18.2.0" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: "@clerk/backend": ^1.0.0 @@ -1912,9 +1905,9 @@ __metadata: resolution: "@hono/cloudflare-access@workspace:packages/cloudflare-access" dependencies: "@arethetypeswrong/cli": "npm:^0.17.4" - "@cloudflare/workers-types": "npm:^4.20230307.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: "*" @@ -1932,6 +1925,7 @@ __metadata: conform-to-valibot: "npm:^1.10.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" valibot: "npm:^0.36.0" vitest: "npm:^3.0.8" yup: "npm:^1.4.0" @@ -1950,6 +1944,7 @@ __metadata: effect: "npm:3.10.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: effect: ">=3.10.0" @@ -1966,6 +1961,7 @@ __metadata: esbuild-wasm: "npm:^0.19.5" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: ">=3.9.2" @@ -1976,7 +1972,6 @@ __metadata: version: 0.0.0-use.local resolution: "@hono/eslint-config@workspace:packages/eslint-config" dependencies: - "@eslint/eslintrc": "npm:^3.1.0" "@eslint/js": "npm:^9.10.0" eslint: "npm:^9.23.0" eslint-config-prettier: "npm:^10.1.1" @@ -1998,6 +1993,7 @@ __metadata: "@arethetypeswrong/cli": "npm:^0.17.4" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: "*" @@ -2009,13 +2005,13 @@ __metadata: resolution: "@hono/firebase-auth@workspace:packages/firebase-auth" dependencies: "@arethetypeswrong/cli": "npm:^0.17.4" - "@cloudflare/workers-types": "npm:^4.20240222.0" firebase-auth-cloudflare-workers: "npm:^2.0.6" firebase-tools: "npm:^13.29.1" miniflare: "npm:^3.20240208.0" prettier: "npm:^3.2.5" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: "*" @@ -2027,10 +2023,10 @@ __metadata: resolution: "@hono/graphql-server@workspace:packages/graphql-server" dependencies: "@arethetypeswrong/cli": "npm:^0.17.4" - "@cloudflare/workers-types": "npm:^3.14.0" graphql: "npm:^16.5.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: ">=3.0.0" @@ -2044,6 +2040,7 @@ __metadata: "@arethetypeswrong/cli": "npm:^0.17.4" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: "*" @@ -2058,6 +2055,7 @@ __metadata: "@medley/router": "npm:^0.2.1" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: ">=3.8.0" @@ -2079,10 +2077,9 @@ __metadata: dependencies: "@arethetypeswrong/cli": "npm:^0.17.4" "@hono/node-server": "npm:^1.11.1" - "@types/node": "npm:^20.14.8" - "@types/ws": "npm:^8.18.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" ws: "npm:^8.17.0" peerDependencies: @@ -2099,6 +2096,7 @@ __metadata: msw: "npm:^2.0.11" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: ">=3.*" @@ -2115,6 +2113,7 @@ __metadata: oauth4webapi: "npm:^2.6.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: ">=3.*" @@ -2132,6 +2131,7 @@ __metadata: "@opentelemetry/semantic-conventions": "npm:^1.28.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: "*" @@ -2146,6 +2146,7 @@ __metadata: prom-client: "npm:^15.0.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: ">=3.*" @@ -2162,6 +2163,7 @@ __metadata: "@builder.io/qwik-city": "npm:^1.2.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" peerDependencies: "@builder.io/qwik": ^1.2.0 "@builder.io/qwik-city": ^1.2.0 @@ -2176,6 +2178,7 @@ __metadata: "@arethetypeswrong/cli": "npm:^0.17.4" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" peerDependencies: hono: ">=4.5.*" languageName: unknown @@ -2193,6 +2196,7 @@ __metadata: react: "npm:^18.2.0" react-dom: "npm:^18.2.0" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: "*" @@ -2209,6 +2213,7 @@ __metadata: publint: "npm:^0.3.9" toucan-js: "npm:^4.0.0" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: ">=3.*" @@ -2224,6 +2229,7 @@ __metadata: arktype: "npm:^2.0.0-rc.26" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" valibot: "npm:^1.0.0-beta.9" vitest: "npm:^3.0.8" zod: "npm:^3.24.0" @@ -2240,6 +2246,7 @@ __metadata: "@arethetypeswrong/cli": "npm:^0.17.4" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: "*" @@ -2254,6 +2261,7 @@ __metadata: "@types/swagger-ui-dist": "npm:^3.30.5" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: "*" @@ -2268,6 +2276,7 @@ __metadata: "@trpc/server": "npm:^11.0.0" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" zod: "npm:^3.20.2" peerDependencies: @@ -2285,6 +2294,7 @@ __metadata: reflect-metadata: "npm:^0.2.2" tsup: "npm:^8.4.0" tsyringe: "npm:^4.8.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: hono: ">=4.*" @@ -2300,6 +2310,7 @@ __metadata: "@sinclair/typebox": "npm:^0.31.15" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" peerDependencies: "@sinclair/typebox": ">=0.31.15 <1" @@ -2315,6 +2326,7 @@ __metadata: "@ryoppippi/unplugin-typia": "npm:^2.1.4" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" typia: "npm:^8.0.3" vitest: "npm:^3.0.8" peerDependencies: @@ -2330,6 +2342,7 @@ __metadata: "@arethetypeswrong/cli": "npm:^0.17.4" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" valibot: "npm:^1.0.0" vitest: "npm:^3.0.8" peerDependencies: @@ -2347,6 +2360,7 @@ __metadata: "@hono/zod-validator": "workspace:^" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" yaml: "npm:^2.4.3" zod: "npm:^3.22.1" @@ -2363,6 +2377,7 @@ __metadata: "@arethetypeswrong/cli": "npm:^0.17.4" publint: "npm:^0.3.9" tsup: "npm:^8.4.0" + typescript: "npm:^5.8.2" vitest: "npm:^3.0.8" zod: "npm:^3.22.4" peerDependencies: @@ -3886,12 +3901,12 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^20.14.8": - version: 20.17.27 - resolution: "@types/node@npm:20.17.27" +"@types/node@npm:^20.17.28": + version: 20.17.28 + resolution: "@types/node@npm:20.17.28" dependencies: undici-types: "npm:~6.19.2" - checksum: 09f30c65e5f2a082eddf26a7ffa859bf2b77e1123829309823e7691227fd5a691b30cd3ac413d65829aa25c1eebd2f717bed80f2f8a7f83aaa6c2c3a047b3504 + checksum: d77214e54d8f303d0a79fc896f8c4267b057fbc774448f6d09d24874d521293cd6036292e79b2791a6aef18895bd80dc58c1853bd8a0cf261b08500083f07273 languageName: node linkType: hard @@ -8370,7 +8385,8 @@ __metadata: "@cloudflare/workers-types": "npm:^4.20230307.0" "@hono/eslint-config": "workspace:*" "@ryoppippi/unplugin-typia": "npm:^1.2.0" - "@types/node": "npm:^20.14.8" + "@types/node": "npm:^20.17.28" + "@types/ws": "npm:^8.18.0" "@typescript-eslint/eslint-plugin": "npm:^8.7.0" "@typescript-eslint/parser": "npm:^8.7.0" "@vitest/coverage-istanbul": "npm:^3.0.8"