Skip to content

Commit

Permalink
Add windows support for melos invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
dam5s committed Dec 13, 2023
1 parent 209043e commit b392c54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cycle_detection/melos_paths.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import 'package:path/path.dart' as path;

final class MelosPaths {
static Future<List<String>?> tryGet(String monorepoPath) async {
final melos = Platform.isWindows ? 'melos.bat' : 'melos';

final listResult = await Process.run(
'melos',
melos,
['list', '-p'],
workingDirectory: monorepoPath,
);
Expand Down

0 comments on commit b392c54

Please sign in to comment.