mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-30 07:29:04 +01:00
Only install the packages we need
This commit is contained in:
+10
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user