From bb9710185a735e7176646e509433f4c033a2c774 Mon Sep 17 00:00:00 2001 From: Victor Ohashi <38299943+VictorOhashi@users.noreply.github.com> Date: Wed, 27 Dec 2023 05:31:43 -0300 Subject: [PATCH] fix: Expose script api (#573) * fix: Expose script api * fix: Dart analysis --------- Co-authored-by: Mike Diarmid Co-authored-by: Lukas Klingsbo --- packages/melos/lib/melos.dart | 1 + packages/melos/lib/src/workspace_configs.dart | 1 - packages/melos/test/command_runner_test.dart | 1 - packages/melos/test/commands/run_test.dart | 1 - packages/melos/test/workspace_config_test.dart | 1 - 5 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/melos/lib/melos.dart b/packages/melos/lib/melos.dart index a7c5abb6..faa190f1 100644 --- a/packages/melos/lib/melos.dart +++ b/packages/melos/lib/melos.dart @@ -26,6 +26,7 @@ export 'src/package.dart' PackageFilters, PackageMap, PackageType; +export 'src/scripts.dart' show ExecOptions, Script, Scripts; export 'src/workspace.dart' show IdeWorkspace, MelosWorkspace; export 'src/workspace_configs.dart' show diff --git a/packages/melos/lib/src/workspace_configs.dart b/packages/melos/lib/src/workspace_configs.dart index da506ab6..d1d58a6d 100644 --- a/packages/melos/lib/src/workspace_configs.dart +++ b/packages/melos/lib/src/workspace_configs.dart @@ -31,7 +31,6 @@ import 'common/io.dart'; import 'common/utils.dart'; import 'common/validation.dart'; import 'package.dart'; -import 'scripts.dart'; /// IDE-specific configurations. @immutable diff --git a/packages/melos/test/command_runner_test.dart b/packages/melos/test/command_runner_test.dart index 7b2361ca..444c5fbb 100644 --- a/packages/melos/test/command_runner_test.dart +++ b/packages/melos/test/command_runner_test.dart @@ -1,7 +1,6 @@ import 'package:melos/melos.dart'; import 'package:melos/src/command_runner.dart'; import 'package:melos/src/common/glob.dart'; -import 'package:melos/src/scripts.dart'; import 'package:test/test.dart'; import 'utils.dart'; diff --git a/packages/melos/test/commands/run_test.dart b/packages/melos/test/commands/run_test.dart index f218d990..dd6f3e51 100644 --- a/packages/melos/test/commands/run_test.dart +++ b/packages/melos/test/commands/run_test.dart @@ -3,7 +3,6 @@ import 'package:melos/src/common/glob.dart'; import 'package:melos/src/common/io.dart'; import 'package:melos/src/common/platform.dart'; import 'package:melos/src/common/utils.dart'; -import 'package:melos/src/scripts.dart'; import 'package:path/path.dart' as p; import 'package:pubspec/pubspec.dart'; import 'package:test/test.dart'; diff --git a/packages/melos/test/workspace_config_test.dart b/packages/melos/test/workspace_config_test.dart index 24606e92..bdb677e5 100644 --- a/packages/melos/test/workspace_config_test.dart +++ b/packages/melos/test/workspace_config_test.dart @@ -18,7 +18,6 @@ import 'package:melos/melos.dart'; import 'package:melos/src/common/git_repository.dart'; import 'package:melos/src/common/glob.dart'; import 'package:melos/src/common/platform.dart'; -import 'package:melos/src/scripts.dart'; import 'package:melos/src/workspace_configs.dart'; import 'package:test/test.dart';