diff --git a/packages/melos/lib/src/common/intellij_project.dart b/packages/melos/lib/src/common/intellij_project.dart index a4f56724..b81aefb5 100644 --- a/packages/melos/lib/src/common/intellij_project.dart +++ b/packages/melos/lib/src/common/intellij_project.dart @@ -149,9 +149,11 @@ class IntellijProject { } String ideaModuleStringForName(String moduleName, {String? relativePath}) { - final imlPath = relativePath != null + var imlPath = relativePath != null ? p.normalize('$relativePath/$moduleName.iml') : '$moduleName.iml'; + // Use `/` instead of `\` no matter what platform is. + imlPath = imlPath.replaceAll(r'\', '/'); final module = '