Transpile separately in both build and test steps

This means we avoid doing a type checking pass twice
This commit is contained in:
Henry Mercer
2025-08-22 12:30:55 +01:00
parent 4da503e0f5
commit 8a3bfe665b
18 changed files with 96 additions and 112 deletions

View File

@@ -5,7 +5,6 @@ import { fileURLToPath } from "node:url";
import * as esbuild from "esbuild";
import { globSync } from "glob";
import { copy } from "esbuild-plugin-copy";
import { typecheckPlugin } from "@jgoz/esbuild-plugin-typecheck";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
@@ -39,7 +38,7 @@ const context = await esbuild.context({
format: "cjs",
outdir: OUT_DIR,
platform: "node",
plugins: [typecheckPlugin(), copyDefaults, onEndPlugin],
plugins: [copyDefaults, onEndPlugin],
});
await context.rebuild();