- replace `main/index` bootstrap with `bin`, `cli`, `server`, `serverRuntime`, and `serverRpc` - switch package bin/start targets to `dist/bin.mjs` and add build `--format` support - split/refresh server and route tests, and add shared RPC contracts for ws transport
15 lines
287 B
TypeScript
15 lines
287 B
TypeScript
import { defineConfig } from "tsdown";
|
|
|
|
export default defineConfig({
|
|
entry: ["src/bin.ts"],
|
|
format: ["esm", "cjs"],
|
|
checks: {
|
|
legacyCjs: false,
|
|
},
|
|
outDir: "dist",
|
|
sourcemap: true,
|
|
clean: true,
|
|
noExternal: (id) => id.startsWith("@t3tools/"),
|
|
inlineOnly: false,
|
|
});
|