Skip to content

Commit

Permalink
chore(angular): use output.warn for decoration warning
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Jan 11, 2023
1 parent 9dc1e6e commit e46a8d4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/nx/src/adapter/decorate-cli.ts
Original file line number Diff line number Diff line change
@@ -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 <command>" in any scripts, particularly for CI, with "nx <command>".`
);
output.warn({
title: `Decoration of the Angular CLI is deprecated and will be removed in a future version`,
bodyLines: [
`Please replace usage of "ng <command>" in any scripts, particularly for CI, with "nx <command>"`,
],
});
const path = 'node_modules/@angular/cli/lib/cli/index.js';
const angularCLIInit = readFileSync(path, 'utf-8');
const start = angularCLIInit.indexOf(`(options) {`) + 11;
Expand Down

0 comments on commit e46a8d4

Please sign in to comment.