Skip to content

Commit

Permalink
💚 Fix package root
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 7, 2023
1 parent 5a4b5e3 commit da43df1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/melos_packages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import 'package:pub_semver/pub_semver.dart';
import 'package:yaml/yaml.dart';

void main(List<String> arguments) async {
final root = Platform.environment['MELOS_ROOT_PATH'] as String;
final root =
Platform.environment['MELOS_ROOT_PATH'] ?? Directory.current.path;
final config = MelosWorkspaceConfig.fromYaml(
loadYamlNode(
File('$root/melos.yaml').readAsStringSync(),
Expand Down

0 comments on commit da43df1

Please sign in to comment.