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; }