mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Transpile separately in both build and test steps
This means we avoid doing a type checking pass twice
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user