Skip to content

Commit

Permalink
Merge pull request #115 from kageurufu/patch-1
Browse files Browse the repository at this point in the history
Add support for Windows
  • Loading branch information
stoeffel authored Mar 21, 2024
2 parents 1ae8c04 + 2bc6600 commit bc1f128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cli-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit bc1f128

Please sign in to comment.