From 5272e5af6ff028dffb512cb4467336b288deba30 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Mon, 24 Apr 2023 15:01:09 -0400 Subject: [PATCH] fix(core): do not replace @nrwl mentions in CHANGELOG.md (#16512) --- packages/devkit/src/utils/replace-package.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/devkit/src/utils/replace-package.ts b/packages/devkit/src/utils/replace-package.ts index d77c567171b12..e54cc77806319 100644 --- a/packages/devkit/src/utils/replace-package.ts +++ b/packages/devkit/src/utils/replace-package.ts @@ -148,7 +148,13 @@ function replaceMentions( newPackageName: string ) { visitNotIgnoredFiles(tree, '.', (path) => { - if (['yarn.lock', 'package-lock.json', 'pnpm-lock.yaml'].includes(path)) { + const ignoredFiles = [ + 'yarn.lock', + 'package-lock.json', + 'pnpm-lock.yaml', + 'CHANGELOG.md', + ]; + if (ignoredFiles.includes(path)) { return; }