From dc3737245de275f4343f200b3e8649f745eb95c4 Mon Sep 17 00:00:00 2001 From: AgentEnder Date: Thu, 22 Feb 2024 14:27:15 -0500 Subject: [PATCH] fix(misc): logs from rm-default-collection should render properly --- .../update-17-0-0/rm-default-collection-npm-scope.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nx/src/migrations/update-17-0-0/rm-default-collection-npm-scope.ts b/packages/nx/src/migrations/update-17-0-0/rm-default-collection-npm-scope.ts index b4dbfe8a8c628..e6e946dec1f97 100644 --- a/packages/nx/src/migrations/update-17-0-0/rm-default-collection-npm-scope.ts +++ b/packages/nx/src/migrations/update-17-0-0/rm-default-collection-npm-scope.ts @@ -2,7 +2,7 @@ import { formatChangedFilesWithPrettierIfAvailable } from '../../generators/inte import { Tree } from '../../generators/tree'; import { readNxJson, updateNxJson } from '../../generators/utils/nx-json'; import { readJson } from '../../generators/utils/json'; -import { logger } from '../../utils/logger'; +import { output } from '../../utils/output'; import { NxJsonConfiguration } from '../../config/nx-json'; import { joinPathFragments } from '../../utils/path'; @@ -54,7 +54,7 @@ function warnNpmScopeHasChanged( const packageJsonName = readJson(tree, 'package.json').name; if (newScope) { - logger.warn({ + output.warn({ title: 'npmScope has been removed from nx.json', bodyLines: [ 'This will now be read from package.json', @@ -69,7 +69,7 @@ function warnNpmScopeHasChanged( }); } else { // There is no scope in package.json - logger.warn({ + output.warn({ title: 'npmScope has been removed from nx.json', bodyLines: [ 'This will now be read from package.json',