mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 04:27:38 +00:00
21 lines
374 B
JavaScript
21 lines
374 B
JavaScript
// final prod build
|
|
const { build } = require("esbuild");
|
|
|
|
build({
|
|
entryPoints: ["./src/app.ts"],
|
|
minify: true,
|
|
format: "cjs",
|
|
platform: "node",
|
|
target: "node20",
|
|
bundle: true,
|
|
outfile: "dist/index.js",
|
|
plugins: [],
|
|
})
|
|
.catch((err) => {
|
|
console.error(err);
|
|
process.exit(1);
|
|
})
|
|
.then(() => {
|
|
console.log("Finished bundling server..");
|
|
});
|