Skip to content

Commit 17e2248

Browse files
authored
fix(misc): logs from rm-default-collection should render properly (#21953)
1 parent da4fb5a commit 17e2248

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nx/src/migrations/update-17-0-0/rm-default-collection-npm-scope.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { formatChangedFilesWithPrettierIfAvailable } from '../../generators/inte
22
import { Tree } from '../../generators/tree';
33
import { readNxJson, updateNxJson } from '../../generators/utils/nx-json';
44
import { readJson } from '../../generators/utils/json';
5-
import { logger } from '../../utils/logger';
5+
import { output } from '../../utils/output';
66
import { NxJsonConfiguration } from '../../config/nx-json';
77
import { joinPathFragments } from '../../utils/path';
88

@@ -54,7 +54,7 @@ function warnNpmScopeHasChanged(
5454
const packageJsonName = readJson(tree, 'package.json').name;
5555

5656
if (newScope) {
57-
logger.warn({
57+
output.warn({
5858
title: 'npmScope has been removed from nx.json',
5959
bodyLines: [
6060
'This will now be read from package.json',
@@ -69,7 +69,7 @@ function warnNpmScopeHasChanged(
6969
});
7070
} else {
7171
// There is no scope in package.json
72-
logger.warn({
72+
output.warn({
7373
title: 'npmScope has been removed from nx.json',
7474
bodyLines: [
7575
'This will now be read from package.json',

0 commit comments

Comments
 (0)