From 90195f9209f7815165a7c2a091265798e7a132d0 Mon Sep 17 00:00:00 2001 From: Jonas Perusquia Morales Date: Mon, 30 Mar 2026 13:10:44 -0600 Subject: [PATCH] chore: simplify buildTypes function by removing unused typeEntryGroups and streamlining build options --- app/build.types.ts | 53 ++++++++-------------------------------------- 1 file changed, 9 insertions(+), 44 deletions(-) diff --git a/app/build.types.ts b/app/build.types.ts index 5b6053e4..d56c676a 100644 --- a/app/build.types.ts +++ b/app/build.types.ts @@ -1,53 +1,18 @@ import { build } from "tsdown"; import c from "picocolors"; -// const typeEntryGroups = [ -// [ -// "src/index.ts", -// "src/core/utils/index.ts", -// "src/plugins/index.ts", -// "src/modes/index.ts", -// "src/cli/index.ts", -// ], -// ["src/ui/index.ts", "src/ui/client/index.ts", "src/ui/elements/index.ts"], -// [ -// "src/adapter/index.ts", -// "src/adapter/react-router/index.ts", -// "src/adapter/browser/index.ts", -// "src/adapter/bun/index.ts", -// "src/adapter/astro/index.ts", -// "src/adapter/aws/index.ts", -// "src/adapter/cloudflare/index.ts", -// "src/adapter/cloudflare/proxy.ts", -// "src/adapter/vite/index.ts", -// "src/adapter/nextjs/index.ts", -// "src/adapter/tanstack-start/index.ts", -// "src/adapter/sveltekit/index.ts", -// "src/adapter/nuxt/index.ts", -// "src/adapter/node/index.ts", -// "src/adapter/sqlite/edge.ts", -// "src/adapter/sqlite/node.ts", -// "src/adapter/sqlite/bun.ts", -// ], -// ] as const; - export async function buildTypes() { -// for (const entry of typeEntryGroups) { - await build({ - // entry: [...entry], - root: "src", - outDir: "dist/types", - format: ["esm"], - tsconfig: "tsconfig.build.json", - watch: false, - clean: true, - logLevel: "silent", - dts: { + await build({ + tsconfig: "tsconfig.build.json", + watch: false, + clean: true, + logLevel: "silent", + unbundle: true, + dts: { emitDtsOnly: true, resolver: "oxc", - }, - }); -// } + }, + }); } if (import.meta.main) {