Only install the packages we need

This commit is contained in:
Owen
2026-10-28 15:58:12 -04:00
parent 8ce036b413
commit eea1159f40
3 changed files with 110 additions and 11 deletions
+10
View File
@@ -45,6 +45,11 @@ const argv = yargs(hideBin(process.argv))
choices: ["oss", "saas", "enterprise"],
default: build
})
.option("metafile", {
alias: "m",
describe: "Write the esbuild metafile (inputs/imports) to this path",
type: "string"
})
.help()
.alias("help", "h").argv;
@@ -281,6 +286,7 @@ esbuild
})
],
sourcemap: "inline",
metafile: Boolean(argv.metafile),
target: "node24"
})
.then((result) => {
@@ -306,6 +312,10 @@ esbuild
process.exit(1);
}
if (argv.metafile) {
fs.writeFileSync(argv.metafile, JSON.stringify(result.metafile));
}
console.log("Build completed successfully");
})
.catch((error) => {