chore: simplify buildTypes function by removing unused typeEntryGroups and streamlining build options
This commit is contained in:
+9
-44
@@ -1,53 +1,18 @@
|
|||||||
import { build } from "tsdown";
|
import { build } from "tsdown";
|
||||||
import c from "picocolors";
|
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() {
|
export async function buildTypes() {
|
||||||
// for (const entry of typeEntryGroups) {
|
await build({
|
||||||
await build({
|
tsconfig: "tsconfig.build.json",
|
||||||
// entry: [...entry],
|
watch: false,
|
||||||
root: "src",
|
clean: true,
|
||||||
outDir: "dist/types",
|
logLevel: "silent",
|
||||||
format: ["esm"],
|
unbundle: true,
|
||||||
tsconfig: "tsconfig.build.json",
|
dts: {
|
||||||
watch: false,
|
|
||||||
clean: true,
|
|
||||||
logLevel: "silent",
|
|
||||||
dts: {
|
|
||||||
emitDtsOnly: true,
|
emitDtsOnly: true,
|
||||||
resolver: "oxc",
|
resolver: "oxc",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (import.meta.main) {
|
if (import.meta.main) {
|
||||||
|
|||||||
Reference in New Issue
Block a user