Skip to content

Commit

Permalink
⚡️ Replace \\ with / when generating pubspec_overrides.yaml on …
Browse files Browse the repository at this point in the history
…Windows
  • Loading branch information
AlexV525 committed Jan 13, 2025
1 parent 0fab0ec commit cd8c83e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/melos/lib/src/commands/bootstrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ mixin _BootstrapMixin on _CleanMixin {
for (final otherPackage in workspace.allPackages.values) {
if (allTransitiveDependencies.containsKey(otherPackage.name)) {
melosDependencyOverrides[otherPackage.name] = PathDependency(
utils.relativePath(otherPackage.path, package.path),
utils
.relativePath(otherPackage.path, package.path)
.replaceAll(r'\\', '/'),
);
}
}
Expand All @@ -172,7 +174,9 @@ mixin _BootstrapMixin on _CleanMixin {
for (final dependencyOverride
in workspace.dependencyOverridePackages.values) {
melosDependencyOverrides[dependencyOverride.name] = PathDependency(
utils.relativePath(dependencyOverride.path, package.path),
utils
.relativePath(dependencyOverride.path, package.path)
.replaceAll(r'\\', ''),
);
}

Expand Down

0 comments on commit cd8c83e

Please sign in to comment.