concurrently
Version:
Run commands concurrently
17 lines (16 loc) • 559 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.assertDeprecated = void 0;
const deprecations = new Set();
/**
* Asserts that some condition is true, and if not, prints a warning about it being deprecated.
* The message is printed only once.
*/
function assertDeprecated(check, name, message) {
if (!check) {
// eslint-disable-next-line no-console
console.warn(`[concurrently] ${name} is deprecated. ${message}`);
deprecations.add(name);
}
}
exports.assertDeprecated = assertDeprecated;
;