From af3aaa1adfdf8cc7ec99ac9e4d982a11c9a68dc3 Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Mon, 6 Dec 2021 14:04:11 +0800 Subject: [PATCH 01/12] output improve --- packages/melos/lib/src/commands/version.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/melos/lib/src/commands/version.dart b/packages/melos/lib/src/commands/version.dart index 2b3a927f..8ac425b2 100644 --- a/packages/melos/lib/src/commands/version.dart +++ b/packages/melos/lib/src/commands/version.dart @@ -188,8 +188,9 @@ Hint: try running "melos version --all" to include private packages. // show commit message for (final element in pendingPackageUpdates) { logger.trace(AnsiStyles.yellow.bold(element.package.name)); + logger.trace(''); for (final e in element.commits) { - logger.trace(' ${e.message}'); + logger.trace(e.message); } } From e3a26e562ff9e0b95bcaed6cf35bae01333c9734 Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Mon, 6 Dec 2021 18:54:22 +0800 Subject: [PATCH 02/12] feat: neatStyle for #202 feat: run and exec use trace rather than stdout(#206) --- packages/melos/lib/src/commands/exec.dart | 28 +++++++++----------- packages/melos/lib/src/commands/run.dart | 14 +++++----- packages/melos/lib/src/commands/version.dart | 3 ++- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/packages/melos/lib/src/commands/exec.dart b/packages/melos/lib/src/commands/exec.dart index d76a3c05..d31cdc4c 100644 --- a/packages/melos/lib/src/commands/exec.dart +++ b/packages/melos/lib/src/commands/exec.dart @@ -93,16 +93,15 @@ mixin _ExecMixin on _Melos { final execArgsString = execArgs.join(' '); final prefixLogs = concurrency != 1 && packages.length != 1; - logger - .stdout('${AnsiStyles.yellow(r'$')} ${AnsiStyles.bold("melos exec")}'); - logger.stdout(' └> ${AnsiStyles.cyan.bold(execArgsString)}'); - logger.stdout( + logger.trace('${AnsiStyles.yellow(r'$')} ${AnsiStyles.bold("melos exec")}'); + logger.trace(' └> ${AnsiStyles.cyan.bold(execArgsString)}'); + logger.trace( ' └> ${AnsiStyles.yellow.bold('RUNNING')} (in ${packages.length} packages)', ); - logger.stdout(''); + logger.trace(''); if (prefixLogs) { - logger.stdout('-' * terminalWidth); + logger.trace('-' * terminalWidth); } await pool.forEach(packages, (package) async { @@ -111,8 +110,8 @@ mixin _ExecMixin on _Melos { } if (!prefixLogs) { - logger.stdout('-' * terminalWidth); - logger.stdout(AnsiStyles.bgBlack.bold.italic('${package.name}:')); + logger.trace('-' * terminalWidth); + logger.trace(AnsiStyles.bgBlack.bold.italic('${package.name}:')); } final packageExitCode = await _execForPackage( @@ -125,19 +124,18 @@ mixin _ExecMixin on _Melos { if (packageExitCode > 0) { failures[package.name] = packageExitCode; } else if (!prefixLogs) { - logger.stdout( + logger.trace( AnsiStyles.bgBlack.bold.italic('${package.name}: ') + AnsiStyles.bold.green.bgBlack('SUCCESS'), ); } }).drain(); - logger.stdout('-' * terminalWidth); - logger.stdout(''); + logger.trace('-' * terminalWidth); + logger.trace(''); - logger - .stdout('${AnsiStyles.yellow(r'$')} ${AnsiStyles.bold("melos exec")}'); - logger.stdout(' └> ${AnsiStyles.cyan.bold(execArgsString)}'); + logger.trace('${AnsiStyles.yellow(r'$')} ${AnsiStyles.bold("melos exec")}'); + logger.trace(' └> ${AnsiStyles.cyan.bold(execArgsString)}'); if (failures.isNotEmpty) { logger.stdout( @@ -150,7 +148,7 @@ mixin _ExecMixin on _Melos { } exitCode = 1; } else { - logger.stdout(' └> ${AnsiStyles.green.bold('SUCCESS')}'); + logger.trace(' └> ${AnsiStyles.green.bold('SUCCESS')}'); } } } diff --git a/packages/melos/lib/src/commands/run.dart b/packages/melos/lib/src/commands/run.dart index c88d89b9..17a712b4 100644 --- a/packages/melos/lib/src/commands/run.dart +++ b/packages/melos/lib/src/commands/run.dart @@ -21,16 +21,16 @@ mixin _RunMixin on _Melos { final exitCode = await _runScript(script, config, noSelect: noSelect); logger.stdout(''); - logger.stdout(AnsiStyles.yellow.bold('melos run ${script.name}')); - logger.stdout( + logger.trace(AnsiStyles.yellow.bold('melos run ${script.name}')); + logger.trace( ' └> ${AnsiStyles.cyan.bold(script.run.replaceAll('\n', ''))}', ); if (exitCode != 0) { - logger.stdout(' └> ${AnsiStyles.red.bold('FAILED')}'); + logger.trace(' └> ${AnsiStyles.red.bold('FAILED')}'); throw ScriptException._(script.name); } - logger.stdout(' └> ${AnsiStyles.green.bold('SUCCESS')}'); + logger.trace(' └> ${AnsiStyles.green.bold('SUCCESS')}'); } Future _pickScript(MelosWorkspaceConfig config) async { @@ -134,11 +134,11 @@ mixin _RunMixin on _Melos { final scriptSource = script.run; final scriptParts = scriptSource.split(' '); - logger.stdout(AnsiStyles.yellow.bold('melos run ${script.name}')); - logger.stdout( + logger.trace(AnsiStyles.yellow.bold('melos run ${script.name}')); + logger.trace( ' └> ${AnsiStyles.cyan.bold(scriptSource.replaceAll('\n', ''))}', ); - logger.stdout(' └> ${AnsiStyles.yellow.bold('RUNNING')}\n'); + logger.trace(' └> ${AnsiStyles.yellow.bold('RUNNING')}\n'); return startProcess( scriptParts, diff --git a/packages/melos/lib/src/commands/version.dart b/packages/melos/lib/src/commands/version.dart index 8ac425b2..b50037a1 100644 --- a/packages/melos/lib/src/commands/version.dart +++ b/packages/melos/lib/src/commands/version.dart @@ -190,7 +190,8 @@ Hint: try running "melos version --all" to include private packages. logger.trace(AnsiStyles.yellow.bold(element.package.name)); logger.trace(''); for (final e in element.commits) { - logger.trace(e.message); + final neatStyle = e.message.contains('\n') ? '\n' : ''; + logger.trace(neatStyle + e.message); } } From 5044a1407de7078205e3a6d1745cfec25e11d16c Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Mon, 6 Dec 2021 23:04:12 +0800 Subject: [PATCH 03/12] docs: add info about MELOS_VERBOSE --- docs/environment-variables.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/environment-variables.mdx b/docs/environment-variables.mdx index 6540d57a..9bbe9191 100644 --- a/docs/environment-variables.mdx +++ b/docs/environment-variables.mdx @@ -47,4 +47,8 @@ Note, this 'parent package' functionality only currently works when the 'child p ### `MELOS_PACKAGES` -Define a comma delimited list of package names that Melos should focus on. This bypasses all filtering flags if defined. \ No newline at end of file +Define a comma delimited list of package names that Melos should focus on. This bypasses all filtering flags if defined. + +### `MELOS_VERBOSE` + +Using --verbose if defined. From b7b831eddb6a34d4622e43255bd437ba0486158a Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Mon, 6 Dec 2021 22:46:05 +0800 Subject: [PATCH 04/12] feat: logger getter check environment(fixes #206) --- packages/melos/lib/src/command_runner/base.dart | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/melos/lib/src/command_runner/base.dart b/packages/melos/lib/src/command_runner/base.dart index d02e4d7e..bcc43b06 100644 --- a/packages/melos/lib/src/command_runner/base.dart +++ b/packages/melos/lib/src/command_runner/base.dart @@ -3,6 +3,7 @@ import 'package:args/command_runner.dart'; import 'package:cli_util/cli_logging.dart'; import '../common/glob.dart'; +import '../common/platform.dart'; import '../common/utils.dart'; import '../package.dart'; import '../workspace_configs.dart'; @@ -12,8 +13,17 @@ abstract class MelosCommand extends Command { final MelosWorkspaceConfig config; - Logger get logger => - globalResults!['verbose'] as bool ? Logger.verbose() : Logger.standard(); + Logger get logger { + if (currentPlatform.environment['MELON_VERBOSE'] != '') { + return Logger.verbose(); + } + if (globalResults!['verbose'] as bool) { + currentPlatform.environment['MELON_VERBOSE'] = 'true'; + return Logger.verbose(); + } else { + return Logger.standard(); + } + } /// The `melos.yaml` configuration for this command. /// see [ArgParser.allowTrailingOptions] From 17b04f03028df19267f6fef63c3b48ad08779399 Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Mon, 6 Dec 2021 23:32:41 +0800 Subject: [PATCH 05/12] chore(release): publish packages - melos@1.0.0-dev.14 --- CHANGELOG.md | 22 ++++++++++++++++++++++ packages/melos/CHANGELOG.md | 5 +++++ packages/melos/lib/version.g.dart | 2 +- packages/melos/pubspec.yaml | 2 +- 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60d6b594..701cfbee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2021-12-06 + +### Changes + +--- + +Packages with breaking changes: + +- There are no breaking changes in this release. + +Packages with other changes: + +- [`melos` - `v1.0.0-dev.14`](#melos---v100-dev14) + +--- + +#### `melos` - `v1.0.0-dev.14` + + - **FEAT**: logger getter check environment(fixes #206). + - **FEAT**: neatStyle for #202. + + ## 2021-12-06 ### Changes diff --git a/packages/melos/CHANGELOG.md b/packages/melos/CHANGELOG.md index 5716ed5c..0b3790af 100644 --- a/packages/melos/CHANGELOG.md +++ b/packages/melos/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.0.0-dev.14 + + - **FEAT**: logger getter check environment(fixes #206). ([5205eb49](https://github.com/invertase/melos/commit/5205eb49c969b5a1c0ad289e0ab2a752fc99a5f8)) + - **FEAT**: neatStyle for #202. ([30a6bfba](https://github.com/invertase/melos/commit/30a6bfba2eef780a33af6e3463d249a73334b682)) + ## 1.0.0-dev.13 - **FEAT**: verbose logging now logs package commit messages when versioning (#203). ([b87fb8dc](https://github.com/invertase/melos/commit/b87fb8dcf21d0aeb8524cd9212e21115829d5c0d)) diff --git a/packages/melos/lib/version.g.dart b/packages/melos/lib/version.g.dart index 74ca8f86..dbfd9d2e 100644 --- a/packages/melos/lib/version.g.dart +++ b/packages/melos/lib/version.g.dart @@ -1,2 +1,2 @@ // This file is generated. Do not manually edit. -String melosVersion = '1.0.0-dev.13'; +String melosVersion = '1.0.0-dev.14'; diff --git a/packages/melos/pubspec.yaml b/packages/melos/pubspec.yaml index 875bfb80..0e220860 100644 --- a/packages/melos/pubspec.yaml +++ b/packages/melos/pubspec.yaml @@ -1,6 +1,6 @@ name: melos description: "A tool for managing Dart & Flutter repositories with multiple packages (monorepo). Supports automated versioning via Conventional Commits. Inspired by JavaScripts Lerna package." -version: 1.0.0-dev.13 +version: 1.0.0-dev.14 homepage: "https://github.com/invertase/melos" environment: From 1c8a316fbf3b341a1b3b8c90ed0c62d4f37f6f14 Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Mon, 6 Dec 2021 22:46:05 +0800 Subject: [PATCH 06/12] feat: logger getter check environment(fixes #206) --- packages/melos/lib/src/command_runner/base.dart | 3 +-- packages/melos/lib/src/common/utils.dart | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/melos/lib/src/command_runner/base.dart b/packages/melos/lib/src/command_runner/base.dart index bcc43b06..0d4916b5 100644 --- a/packages/melos/lib/src/command_runner/base.dart +++ b/packages/melos/lib/src/command_runner/base.dart @@ -14,11 +14,10 @@ abstract class MelosCommand extends Command { final MelosWorkspaceConfig config; Logger get logger { - if (currentPlatform.environment['MELON_VERBOSE'] != '') { + if (currentPlatform.environment['MELON_VERBOSE'] != null) { return Logger.verbose(); } if (globalResults!['verbose'] as bool) { - currentPlatform.environment['MELON_VERBOSE'] = 'true'; return Logger.verbose(); } else { return Logger.standard(); diff --git a/packages/melos/lib/src/common/utils.dart b/packages/melos/lib/src/common/utils.dart index dba0a4ea..7aad7a34 100644 --- a/packages/melos/lib/src/common/utils.dart +++ b/packages/melos/lib/src/common/utils.dart @@ -255,6 +255,8 @@ Future startProcess( return _arg; }).where((element) => element != null); + if (logger.isVerbose) environment.addAll({'MELOS_VERBOSE': 'ture'}); + final execProcess = await Process.start( executable, currentPlatform.isWindows From 4aff2edea047c781b4b2bef4e746cc7c830e0fdc Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Tue, 7 Dec 2021 01:51:17 +0800 Subject: [PATCH 07/12] test: :white_check_mark: pass test for #206 --- packages/melos/test/commands/exec_test.dart | 30 ++++++++++----------- packages/melos/test/commands/run_test.dart | 26 +++++------------- 2 files changed, 22 insertions(+), 34 deletions(-) diff --git a/packages/melos/test/commands/exec_test.dart b/packages/melos/test/commands/exec_test.dart index deeb82d7..c514a81d 100644 --- a/packages/melos/test/commands/exec_test.dart +++ b/packages/melos/test/commands/exec_test.dart @@ -51,23 +51,23 @@ void main() { logger.output, equalsIgnoringAnsii( ''' -\$ melos exec - └> echo hello world - └> RUNNING (in 2 packages) - -${'-' * terminalWidth} -a: +t-\$ melos exec +t- └> echo hello world +t- └> RUNNING (in 2 packages) +t- +t-${'-' * terminalWidth} +t-a: hello world -a: SUCCESS -${'-' * terminalWidth} -b: +t-a: SUCCESS +t-${'-' * terminalWidth} +t-b: hello world -b: SUCCESS -${'-' * terminalWidth} - -\$ melos exec - └> echo hello world - └> SUCCESS +t-b: SUCCESS +t-${'-' * terminalWidth} +t- +t-\$ melos exec +t- └> echo hello world +t- └> SUCCESS ''', ), ); diff --git a/packages/melos/test/commands/run_test.dart b/packages/melos/test/commands/run_test.dart index ab3c5e85..67171453 100644 --- a/packages/melos/test/commands/run_test.dart +++ b/packages/melos/test/commands/run_test.dart @@ -59,27 +59,15 @@ void main() { logger.output, equalsIgnoringAnsii( ''' -melos run test_script - └> melos exec -- "echo hello" - └> RUNNING - -\$ melos exec - └> echo hello - └> RUNNING (in 1 packages) - -${'-' * terminalWidth} -a: +t-melos run test_script +t- └> melos exec -- "echo hello" +t- └> RUNNING +t- hello -a: SUCCESS -${'-' * terminalWidth} - -\$ melos exec - └> echo hello - └> SUCCESS -melos run test_script - └> melos exec -- "echo hello" - └> SUCCESS +t-melos run test_script +t- └> melos exec -- "echo hello" +t- └> SUCCESS ''', ), ); From 74974d6391cc66598612a4715bfb816c926ee475 Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Tue, 7 Dec 2021 02:26:23 +0800 Subject: [PATCH 08/12] test: remove no used package --- packages/melos/test/commands/run_test.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/melos/test/commands/run_test.dart b/packages/melos/test/commands/run_test.dart index 67171453..4b71c29d 100644 --- a/packages/melos/test/commands/run_test.dart +++ b/packages/melos/test/commands/run_test.dart @@ -2,7 +2,6 @@ import 'dart:io'; import 'package:melos/melos.dart'; import 'package:melos/src/common/glob.dart'; -import 'package:melos/src/common/utils.dart'; import 'package:melos/src/scripts.dart'; import 'package:path/path.dart'; import 'package:pubspec/pubspec.dart'; From 2d5e5203eea73e68bf68906989815c4ced4b3de3 Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Tue, 7 Dec 2021 20:36:26 +0800 Subject: [PATCH 09/12] Revert "chore(release): publish packages" This reverts commit 17b04f03028df19267f6fef63c3b48ad08779399. --- CHANGELOG.md | 22 ---------------------- packages/melos/CHANGELOG.md | 5 ----- packages/melos/lib/version.g.dart | 2 +- packages/melos/pubspec.yaml | 2 +- 4 files changed, 2 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 701cfbee..60d6b594 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,28 +3,6 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## 2021-12-06 - -### Changes - ---- - -Packages with breaking changes: - -- There are no breaking changes in this release. - -Packages with other changes: - -- [`melos` - `v1.0.0-dev.14`](#melos---v100-dev14) - ---- - -#### `melos` - `v1.0.0-dev.14` - - - **FEAT**: logger getter check environment(fixes #206). - - **FEAT**: neatStyle for #202. - - ## 2021-12-06 ### Changes diff --git a/packages/melos/CHANGELOG.md b/packages/melos/CHANGELOG.md index 0b3790af..5716ed5c 100644 --- a/packages/melos/CHANGELOG.md +++ b/packages/melos/CHANGELOG.md @@ -1,8 +1,3 @@ -## 1.0.0-dev.14 - - - **FEAT**: logger getter check environment(fixes #206). ([5205eb49](https://github.com/invertase/melos/commit/5205eb49c969b5a1c0ad289e0ab2a752fc99a5f8)) - - **FEAT**: neatStyle for #202. ([30a6bfba](https://github.com/invertase/melos/commit/30a6bfba2eef780a33af6e3463d249a73334b682)) - ## 1.0.0-dev.13 - **FEAT**: verbose logging now logs package commit messages when versioning (#203). ([b87fb8dc](https://github.com/invertase/melos/commit/b87fb8dcf21d0aeb8524cd9212e21115829d5c0d)) diff --git a/packages/melos/lib/version.g.dart b/packages/melos/lib/version.g.dart index dbfd9d2e..74ca8f86 100644 --- a/packages/melos/lib/version.g.dart +++ b/packages/melos/lib/version.g.dart @@ -1,2 +1,2 @@ // This file is generated. Do not manually edit. -String melosVersion = '1.0.0-dev.14'; +String melosVersion = '1.0.0-dev.13'; diff --git a/packages/melos/pubspec.yaml b/packages/melos/pubspec.yaml index 0e220860..875bfb80 100644 --- a/packages/melos/pubspec.yaml +++ b/packages/melos/pubspec.yaml @@ -1,6 +1,6 @@ name: melos description: "A tool for managing Dart & Flutter repositories with multiple packages (monorepo). Supports automated versioning via Conventional Commits. Inspired by JavaScripts Lerna package." -version: 1.0.0-dev.14 +version: 1.0.0-dev.13 homepage: "https://github.com/invertase/melos" environment: From a4d0cdec331d89d1657e4f6dc6bad0d25a3cae0f Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Tue, 7 Dec 2021 20:44:05 +0800 Subject: [PATCH 10/12] make a const for VERBOSE --- packages/melos/lib/src/command_runner/base.dart | 2 +- packages/melos/lib/src/common/utils.dart | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/melos/lib/src/command_runner/base.dart b/packages/melos/lib/src/command_runner/base.dart index 0d4916b5..c247c089 100644 --- a/packages/melos/lib/src/command_runner/base.dart +++ b/packages/melos/lib/src/command_runner/base.dart @@ -14,7 +14,7 @@ abstract class MelosCommand extends Command { final MelosWorkspaceConfig config; Logger get logger { - if (currentPlatform.environment['MELON_VERBOSE'] != null) { + if (currentPlatform.environment[envVerbose] != null) { return Logger.verbose(); } if (globalResults!['verbose'] as bool) { diff --git a/packages/melos/lib/src/common/utils.dart b/packages/melos/lib/src/common/utils.dart index 7aad7a34..27bf545d 100644 --- a/packages/melos/lib/src/common/utils.dart +++ b/packages/melos/lib/src/common/utils.dart @@ -54,6 +54,9 @@ extension Let on T? { } } +// Using --verbose if defined. +const envVerbose = 'MELOS_VERBOSE'; + // MELOS_PACKAGES environment variable is a comma delimited list of // package names - used instead of filters if it is present. // This can be user defined or can come from package selection in `melos run`. @@ -255,7 +258,7 @@ Future startProcess( return _arg; }).where((element) => element != null); - if (logger.isVerbose) environment.addAll({'MELOS_VERBOSE': 'ture'}); + if (logger.isVerbose) environment.addAll({envVerbose: 'ture'}); final execProcess = await Process.start( executable, From 2baa0b92f427db70a07fdf546984a4d9463b7078 Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Tue, 7 Dec 2021 22:48:13 +0800 Subject: [PATCH 11/12] Update packages/melos/lib/src/commands/version.dart Co-authored-by: Mike Diarmid --- packages/melos/lib/src/commands/version.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/melos/lib/src/commands/version.dart b/packages/melos/lib/src/commands/version.dart index b50037a1..784d24e5 100644 --- a/packages/melos/lib/src/commands/version.dart +++ b/packages/melos/lib/src/commands/version.dart @@ -190,8 +190,8 @@ Hint: try running "melos version --all" to include private packages. logger.trace(AnsiStyles.yellow.bold(element.package.name)); logger.trace(''); for (final e in element.commits) { - final neatStyle = e.message.contains('\n') ? '\n' : ''; - logger.trace(neatStyle + e.message); + final newLinePrefix = e.message.contains('\n') ? '\n' : ''; + logger.trace('${newLinePrefix}${e.message}'); } } From c11429ad7d98fc0d65498f88c913c40689f55ef5 Mon Sep 17 00:00:00 2001 From: huang12zheng <805104533@qq.com> Date: Tue, 7 Dec 2021 22:48:13 +0800 Subject: [PATCH 12/12] Update packages/melos/lib/src/commands/version.dart --- packages/melos/lib/src/commands/version.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/melos/lib/src/commands/version.dart b/packages/melos/lib/src/commands/version.dart index 784d24e5..4aa0871c 100644 --- a/packages/melos/lib/src/commands/version.dart +++ b/packages/melos/lib/src/commands/version.dart @@ -191,7 +191,7 @@ Hint: try running "melos version --all" to include private packages. logger.trace(''); for (final e in element.commits) { final newLinePrefix = e.message.contains('\n') ? '\n' : ''; - logger.trace('${newLinePrefix}${e.message}'); + logger.trace('$newLinePrefix${e.message}'); } }