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
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: bundle-metadata-${{ matrix.os }}-${{ matrix.node-version }}
|
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 }}
|
retention-days: ${{ (github.ref_name == github.event.repository.default_branch && 90) || 7 }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -12,4 +12,4 @@ eslint.sarif
|
|||||||
# for local incremental compilation
|
# for local incremental compilation
|
||||||
tsconfig.tsbuildinfo
|
tsconfig.tsbuildinfo
|
||||||
# esbuild metadata file
|
# esbuild metadata file
|
||||||
meta.json
|
build-metadata.json
|
||||||
|
|||||||
@@ -82,6 +82,6 @@ const context = await esbuild.context({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const result = await context.rebuild();
|
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();
|
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");
|
export const PR_CHECK_EXCLUDED_FILE = path.join(PR_CHECKS_DIR, "excluded.yml");
|
||||||
|
|
||||||
/** The path to the esbuild metadata file. */
|
/** 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. */
|
/** The path of the baseline esbuild metadata file, once extracted from a workflow artifact. */
|
||||||
export const BASELINE_BUNDLE_METADATA_FILE = path.join(
|
export const BASELINE_BUNDLE_METADATA_FILE = path.join(
|
||||||
PR_CHECKS_DIR,
|
PR_CHECKS_DIR,
|
||||||
"meta.json",
|
"build-metadata.json",
|
||||||
);
|
);
|
||||||
|
|
||||||
/** The `src` directory. */
|
/** The `src` directory. */
|
||||||
|
|||||||
Reference in New Issue
Block a user