Skip to content

Commit

Permalink
fix: nits
Browse files Browse the repository at this point in the history
  • Loading branch information
exaby73 committed Oct 30, 2024
1 parent c4a20ae commit 854a086
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
8 changes: 4 additions & 4 deletions packages/melos/lib/src/command_runner/init.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/melos/lib/src/commands/init.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mixin _InitMixin on _Melos {
}

final dartVersion = utils.currentDartVersion('dart');
final melosYaml = <String, dynamic>{
final melosYaml = <String, Object?>{
'name': qualifiedWorkspaceName,
'packages': [if (useAppDir) 'apps/*', 'packages/*'],
if (packages.isNotEmpty) 'packages': packages,
Expand All @@ -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',
Expand Down
9 changes: 0 additions & 9 deletions packages/melos/lib/src/commands/runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 854a086

Please sign in to comment.