mirror of
https://github.com/github/codeql-action.git
synced 2026-03-31 00:32:17 +00:00
- `package.json` is bundled by `esbuild` because we depend on it in `actions-util.ts` - That is so we can access the `version` property - We now use `build.mjs` to define a constant for it instead - We also set this constant in `ava.setup.mjs` for tests - This reduces the size of the generated `.js` files and avoids changing them entirely in some cases
4 lines
109 B
JavaScript
4 lines
109 B
JavaScript
import pkg from "./package.json" with { type: "json" };
|
|
|
|
globalThis.__CODEQL_ACTION_VERSION__ = pkg.version;
|