From 854a086d1c47c419631fe69bf9379f22a209d795 Mon Sep 17 00:00:00 2001 From: exaby73 Date: Wed, 30 Oct 2024 14:40:29 +0530 Subject: [PATCH] fix: nits --- packages/melos/lib/src/command_runner/init.dart | 8 ++++---- packages/melos/lib/src/commands/init.dart | 4 ++-- packages/melos/lib/src/commands/runner.dart | 9 --------- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/packages/melos/lib/src/command_runner/init.dart b/packages/melos/lib/src/command_runner/init.dart index 9fb89119..95719bdd 100644 --- a/packages/melos/lib/src/command_runner/init.dart +++ b/packages/melos/lib/src/command_runner/init.dart @@ -11,20 +11,20 @@ class InitCommand extends MelosCommand { argParser.addOption( 'directory', abbr: 'd', - help: 'Directory name to create project in. Defaults to workspace name', + help: 'Directory to create project in. Defaults to the workspace name.', ); argParser.addMultiOption( 'packages', abbr: 'p', - help: 'Comma separated packages to add in top level `packages` array', + help: 'Comma separated packages to add in top level `packages` array.', ); argParser.addOption( 'project', abbr: 'P', - help: - 'Project name to be used in pubspec.yaml. Defaults to workspace name', + help: 'Project name to be used in pubspec.yaml. ' + 'Defaults to the workspace name.', ); } diff --git a/packages/melos/lib/src/commands/init.dart b/packages/melos/lib/src/commands/init.dart index bd6a28f8..ada1d3e9 100644 --- a/packages/melos/lib/src/commands/init.dart +++ b/packages/melos/lib/src/commands/init.dart @@ -28,7 +28,7 @@ mixin _InitMixin on _Melos { } final dartVersion = utils.currentDartVersion('dart'); - final melosYaml = { + final melosYaml = { 'name': qualifiedWorkspaceName, 'packages': [if (useAppDir) 'apps/*', 'packages/*'], if (packages.isNotEmpty) 'packages': packages, @@ -54,7 +54,7 @@ mixin _InitMixin on _Melos { ); logger.log( - 'Initialized Melos workspace in ${dir.path}\n' + 'Initialized Melos workspace in ${dir.path}.\n' 'Run the following commands to bootstrap the workspace:\n' ' cd ${dir.path}\n' ' melos bootstrap', diff --git a/packages/melos/lib/src/commands/runner.dart b/packages/melos/lib/src/commands/runner.dart index 9883cdd1..2c514cb4 100644 --- a/packages/melos/lib/src/commands/runner.dart +++ b/packages/melos/lib/src/commands/runner.dart @@ -45,23 +45,14 @@ import '../workspace.dart'; import '../workspace_configs.dart'; part 'bootstrap.dart'; - part 'clean.dart'; - part 'exec.dart'; - part 'list.dart'; - part 'publish.dart'; - part 'run.dart'; - part 'version.dart'; - part 'analyze.dart'; - part 'format.dart'; - part 'init.dart'; enum CommandWithLifecycle {