diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index c4e93c923..bd0333a95 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -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 diff --git a/.gitignore b/.gitignore index 4dd74f80b..09f7ebf6a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ eslint.sarif # for local incremental compilation tsconfig.tsbuildinfo # esbuild metadata file -meta.json +build-metadata.json diff --git a/build.mjs b/build.mjs index dd078826b..d7404a1ad 100644 --- a/build.mjs +++ b/build.mjs @@ -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(); diff --git a/pr-checks/config.ts b/pr-checks/config.ts index e28f58532..ff5a3b4ac 100644 --- a/pr-checks/config.ts +++ b/pr-checks/config.ts @@ -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. */