GoonCord/scripts/util.mjs

17 lines
439 B
JavaScript
Raw Permalink Normal View History

2024-05-24 19:13:57 +08:00
// @ts-nocheck
import chalk from "chalk";
export function printBuildSuccess(
hash,
branch,
timeTook,
minified
) {
console.info([
chalk.bold.greenBright("✔ Built bundle" + (minified ? " (minified)" : "")),
hash && chalk.bold.blueBright(`(${hash})`),
!branch && chalk.bold.cyanBright("(local)"),
timeTook && chalk.gray(`in ${timeTook.toFixed(3)}ms`)
].filter(Boolean).join(" "));
}