Skip to content

Commit

Permalink
fix(release): show version plan deletion log in dry-run (#27744)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry authored Sep 4, 2024
1 parent 1108ebf commit 00b5d39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nx/src/command-line/release/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ async function applyChangesAndExit(
const changedFiles: string[] = changes.map((f) => f.path);

let deletedFiles: string[] = [];
if (args.deleteVersionPlans && !args.dryRun) {
if (args.deleteVersionPlans) {
const planFiles = new Set<string>();
releaseGroups.forEach((group) => {
if (group.resolvedVersionPlans) {
Expand Down
2 changes: 1 addition & 1 deletion packages/nx/src/command-line/release/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export async function gitAdd({
if (isFileIgnored) {
ignoredFiles.push(f);
// git add will fail if trying to add an untracked file that doesn't exist
} else if (changedTrackedFiles.has(f)) {
} else if (changedTrackedFiles.has(f) || dryRun) {
filesToAdd.push(f);
}
}
Expand Down

0 comments on commit 00b5d39

Please sign in to comment.