UNPKG

@nx/js

Version:

The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects.

18 lines (17 loc) 575 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.printDiagnostics = printDiagnostics; async function printDiagnostics(errors = [], warnings = []) { if (errors.length > 0) { errors.forEach((err) => { console.log(`${err}\n`); }); console.log(`Found ${errors.length} error${errors.length > 1 ? 's' : ''}.`); } else if (warnings.length > 0) { warnings.forEach((err) => { console.log(`${err}\n`); }); console.log(`Found ${warnings.length} warnings.`); } }