diff --git a/packages/melos/lib/src/commands/exec.dart b/packages/melos/lib/src/commands/exec.dart index 97e5d4db..969629a5 100644 --- a/packages/melos/lib/src/commands/exec.dart +++ b/packages/melos/lib/src/commands/exec.dart @@ -35,7 +35,7 @@ mixin _ExecMixin on _Melos { final environment = { ...currentPlatform.environment, 'MELOS_PACKAGE_NAME': package.name, - 'MELOS_PACKAGE_VERSION': (package.version).toString(), + 'MELOS_PACKAGE_VERSION': package.version.toString(), 'MELOS_PACKAGE_PATH': package.path, 'MELOS_ROOT_PATH': workspace.path, if (workspace.sdkPath != null) envKeyMelosSdkPath: workspace.sdkPath!, diff --git a/packages/melos/lib/src/commands/list.dart b/packages/melos/lib/src/commands/list.dart index d2277e7f..13288e31 100644 --- a/packages/melos/lib/src/commands/list.dart +++ b/packages/melos/lib/src/commands/list.dart @@ -74,7 +74,7 @@ mixin _ListMixin on _Melos { .map( (package) => [ package.name, - AnsiStyles.green((package.version).toString()), + AnsiStyles.green(package.version.toString()), AnsiStyles.gray(printablePath(package.pathRelativeToWorkspace)), if (package.isPrivate) AnsiStyles.red('PRIVATE'), ],