chore: Switch from TypeScript to build with tsdown, speeds up pnpm build by 5-10x.

This commit is contained in:
cpojer
2026-01-31 15:25:06 +09:00
parent d2a852b982
commit 67945e8d62
25 changed files with 553 additions and 234 deletions

View File

@@ -114,7 +114,7 @@ const spawnGatewayInstance = async (name: string): Promise<GatewayInstance> => {
child = spawn(
"node",
[
"dist/index.js",
"dist/index.mjs",
"gateway",
"--port",
String(port),
@@ -199,7 +199,7 @@ const stopGatewayInstance = async (inst: GatewayInstance) => {
const runCliJson = async (args: string[], env: NodeJS.ProcessEnv): Promise<unknown> => {
const stdout: string[] = [];
const stderr: string[] = [];
const child = spawn("node", ["dist/index.js", ...args], {
const child = spawn("node", ["dist/index.mjs", ...args], {
cwd: process.cwd(),
env: { ...process.env, ...env },
stdio: ["ignore", "pipe", "pipe"],