Files
BrowserOS/scripts/build/log.ts
Nikhil 826c6f6946 fix: shell error fix (#244)
* feat: move to bun plugin to intercept WASM

* feat: new build/server.ts with refactored

* fix: clean-up source map dirs before build

* fix: remove elide for build

* fix: clean-up source map ordering
2026-01-19 11:40:59 -08:00

19 lines
658 B
TypeScript

/**
* @license
* Copyright 2025 BrowserOS
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import pc from 'picocolors'
export const log = {
header: (title: string) => console.log(`\n${pc.bold(title)}`),
step: (msg: string) => console.log(pc.cyan(`${msg}`)),
success: (msg: string) => console.log(pc.green(`${msg}`)),
warn: (msg: string) => console.log(pc.yellow(` ! ${msg}`)),
error: (msg: string) => console.log(pc.red(`${msg}`)),
info: (msg: string) => console.log(pc.dim(` ${msg}`)),
done: (msg: string) => console.log(pc.green(`\n✓ ${msg}\n`)),
fail: (msg: string) => console.log(pc.red(`\n✗ ${msg}\n`)),
}