UNPKG

workspace-tools

Version:

A collection of utilities that are useful in a git-controlled monorepo managed by one of these tools:

14 lines 521 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logVerboseWarning = void 0; /** * Helper that logs an error to `console.warn` if `process.env.VERBOSE` is set. * This should be replaced with a proper logging system eventually. */ function logVerboseWarning(description, err) { if (process.env.VERBOSE) { console.warn(`${description}${err ? ":\n" : ""}`, err?.stack || err || ""); } } exports.logVerboseWarning = logVerboseWarning; //# sourceMappingURL=logging.js.map