From 2abf865e856f2992c5ea7a85e6105a4067996e84 Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Thu, 12 Sep 2024 03:27:29 -0600 Subject: [PATCH] Update: Show current version plus latest compatible version in dry runs (fixes #206) (#208) * Show current version plus latest compatible version in dry runs * Fix typo in .github/pull_request_template.md --- .github/pull_request_template.md | 2 +- lib/integration/PluginManagement/update.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 750a692..f641119 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -8,7 +8,7 @@ * A sentence describing each fix ### Update -* A sentence describing each udpate +* A sentence describing each update ### New * A sentence describing each new feature diff --git a/lib/integration/PluginManagement/update.js b/lib/integration/PluginManagement/update.js index 98fddf4..985b85c 100644 --- a/lib/integration/PluginManagement/update.js +++ b/lib/integration/PluginManagement/update.js @@ -3,7 +3,7 @@ import { eachOfSeries } from 'async' import path from 'path' import Project from '../Project.js' import { createPromptTask } from '../../util/createPromptTask.js' -import { errorPrinter, packageNamePrinter, versionPrinter, existingVersionPrinter } from './print.js' +import { errorPrinter, packageNamePrinter, existingVersionPrinter } from './print.js' import { eachOfLimitProgress, eachOfSeriesProgress } from '../../util/promises.js' /** @typedef {import("../Target.js").default} Target */ @@ -189,7 +189,7 @@ function summariseDryRun ({ logger, targets }) { summarise(logger, localSources, packageNamePrinter, 'The following plugins were installed from a local source and cannot be updated:') summarise(logger, toBeSkipped, packageNamePrinter, 'The following plugins will be skipped:') summarise(logger, missing, packageNamePrinter, 'There was a problem locating the following plugins:') - summarise(logger, toBeInstalled, versionPrinter, 'The following plugins will be updated:') + summarise(logger, toBeInstalled, existingVersionPrinter, 'The following plugins will be updated:') } /**