From 636f6ded2cb284d458001ffbe17c92d67affbf46 Mon Sep 17 00:00:00 2001 From: FrozenPandaz Date: Tue, 25 Apr 2023 16:31:18 -0400 Subject: [PATCH] fix(core): do not replace @nrwl mentions in excluded files anywhere in the workspace --- packages/devkit/src/utils/replace-package.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devkit/src/utils/replace-package.ts b/packages/devkit/src/utils/replace-package.ts index e54cc77806319..86bdc0eb2fa52 100644 --- a/packages/devkit/src/utils/replace-package.ts +++ b/packages/devkit/src/utils/replace-package.ts @@ -154,7 +154,7 @@ function replaceMentions( 'pnpm-lock.yaml', 'CHANGELOG.md', ]; - if (ignoredFiles.includes(path)) { + if (ignoredFiles.includes(basename(path))) { return; }