From cba192817db8294512a4404b7c22b1c93910873a Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Fri, 13 Dec 2024 11:15:48 -0800 Subject: [PATCH] Make the extension public --- esbuild.mjs | 6 +++++- vss-extension.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/esbuild.mjs b/esbuild.mjs index 02d3fe7..eb02775 100644 --- a/esbuild.mjs +++ b/esbuild.mjs @@ -1,13 +1,15 @@ import { build } from "esbuild"; import { copy } from "esbuild-plugin-copy"; +import fs from "node:fs"; -await build({ +const result = await build({ entryPoints: ["src/index.mts"], bundle: true, platform: "node", format: "esm", outfile: "dist/index.mjs", minify: true, + metafile: true, plugins: [ copy({ assets: { @@ -17,3 +19,5 @@ await build({ }), ], }); + +fs.writeFileSync("dist/meta.json", JSON.stringify(result.metafile, null, 2)); diff --git a/vss-extension.json b/vss-extension.json index 488beb0..f524168 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -4,7 +4,7 @@ "id": "scorecard", "name": "OSSF Scorecard", "version": "0.0.0", - "public": false, + "public": true, "publisher": "JamieMagee", "targets": [ {