mirror of
https://github.com/github/codeql-action.git
synced 2026-05-22 13:59:03 +00:00
436aa0401d
Bundles each entry point as ESM with esbuild's splitting:true so
shared transitive dependencies (Azure storage, undici, octokit, ...)
live in shared chunk files under lib/chunks/ instead of being
duplicated into every entry bundle.
A small banner is injected so bundled CommonJS deps that call
require(), __filename or __dirname at runtime still work. A
lib/package.json with { "type": "module" } is written by the build
so the bundles can keep the .js extension while being loaded as ESM
by Node; this scope avoids touching the tsc output in build/ and the
action.yml entrypoints stay unchanged.
On a measured tar.gz of the working tree this takes the repo from
~9.5 MB to ~2.6 MB compressed (lib/ alone: 8.0 MB -> 0.7 MB).
3 lines
1.1 KiB
JavaScript
Generated
3 lines
1.1 KiB
JavaScript
Generated
import { createRequire as __codeqlCreateRequire } from "module";import { fileURLToPath as __codeqlFileURLToPath } from "url";import { dirname as __codeqlDirname } from "path";var require = __codeqlCreateRequire(import.meta.url);var __filename = __codeqlFileURLToPath(import.meta.url);var __dirname = __codeqlDirname(__filename);
|
|
import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r}from"./chunks/chunk-XFYKKQKY.js";import"./chunks/chunk-2R674E4A.js";import"./chunks/chunk-LYJYPMC2.js";import"./chunks/chunk-V6LGBXSF.js";export{i as buildPayload,r as filterAlertsByDiffRange,e as findSarifFilesInDir,f as getGroupedSarifFilePaths,c as populateRunAutomationDetails,j as postProcessSarifFiles,g as readSarifFileOrThrow,o as shouldConsiderConfigurationError,p as shouldConsiderInvalidRequest,a as shouldShowCombineSarifFilesDeprecationWarning,b as throwIfCombineSarifFilesDisabled,l as uploadFiles,d as uploadPayload,m as uploadPostProcessedFiles,h as validateSarifFileSchema,q as validateUniqueCategory,n as waitForProcessing,k as writePostProcessedFiles};
|