diff --git a/packages/nx/src/adapter/decorate-cli.ts b/packages/nx/src/adapter/decorate-cli.ts index 259ab16075b813..d480dc04d40384 100644 --- a/packages/nx/src/adapter/decorate-cli.ts +++ b/packages/nx/src/adapter/decorate-cli.ts @@ -1,12 +1,13 @@ import { readFileSync, writeFileSync } from 'fs'; +import { output } from '../utils/output'; export function decorateCli() { - console.warn( - `Decoration of the Angular CLI is deprecated and will be removed in a future version.` - ); - console.warn( - `Please replace usage of "ng " in any scripts, particularly for CI, with "nx ".` - ); + output.warn({ + title: `Decoration of the Angular CLI is deprecated and will be removed in a future version`, + bodyLines: [ + `Please replace usage of "ng " in any scripts, particularly for CI, with "nx "`, + ], + }); const path = 'node_modules/@angular/cli/lib/cli/index.js'; const angularCLIInit = readFileSync(path, 'utf-8'); const start = angularCLIInit.indexOf(`(options) {`) + 11;