diff --git a/bin/cli-helpers.js b/bin/cli-helpers.js index 0e1595c..5cae9dc 100644 --- a/bin/cli-helpers.js +++ b/bin/cli-helpers.js @@ -65,7 +65,7 @@ function findParentElmJson(p) { } function elmPathToModuleName(pathName) { - return pathName.slice(0, -4).replace(/\//g, "."); + return pathName.slice(0, -4).split(path.sep).join("."); } module.exports = {