mirror of
https://github.com/github/codeql-action.git
synced 2026-08-05 04:57:19 -05:00
Rename meta.json to build-metadata.json
This commit is contained in:
@@ -56,7 +56,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: bundle-metadata-${{ matrix.os }}-${{ matrix.node-version }}
|
||||
path: meta.json
|
||||
path: build-metadata.json
|
||||
retention-days: ${{ (github.ref_name == github.event.repository.default_branch && 90) || 7 }}
|
||||
if-no-files-found: error
|
||||
|
||||
|
||||
+1
-1
@@ -12,4 +12,4 @@ eslint.sarif
|
||||
# for local incremental compilation
|
||||
tsconfig.tsbuildinfo
|
||||
# esbuild metadata file
|
||||
meta.json
|
||||
build-metadata.json
|
||||
|
||||
@@ -82,6 +82,6 @@ const context = await esbuild.context({
|
||||
});
|
||||
|
||||
const result = await context.rebuild();
|
||||
await writeFile(join(__dirname, "meta.json"), JSON.stringify(result.metafile));
|
||||
await writeFile(join(__dirname, "build-metadata.json"), JSON.stringify(result.metafile));
|
||||
|
||||
await context.dispose();
|
||||
|
||||
+6
-2
@@ -10,12 +10,16 @@ export const PR_CHECKS_DIR = __dirname;
|
||||
export const PR_CHECK_EXCLUDED_FILE = path.join(PR_CHECKS_DIR, "excluded.yml");
|
||||
|
||||
/** The path to the esbuild metadata file. */
|
||||
export const BUNDLE_METADATA_FILE = path.join(PR_CHECKS_DIR, "..", "meta.json");
|
||||
export const BUNDLE_METADATA_FILE = path.join(
|
||||
PR_CHECKS_DIR,
|
||||
"..",
|
||||
"build-metadata.json",
|
||||
);
|
||||
|
||||
/** The path of the baseline esbuild metadata file, once extracted from a workflow artifact. */
|
||||
export const BASELINE_BUNDLE_METADATA_FILE = path.join(
|
||||
PR_CHECKS_DIR,
|
||||
"meta.json",
|
||||
"build-metadata.json",
|
||||
);
|
||||
|
||||
/** The `src` directory. */
|
||||
|
||||
Reference in New Issue
Block a user