Skip to content

Commit

Permalink
Merge pull request #113 from ymtszw/fix/handle_package_elm_project
Browse files Browse the repository at this point in the history
fix: provide default source directories for packages
  • Loading branch information
stoeffel authored Feb 13, 2024
2 parents 400d70f + 32cf154 commit 725e740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function elmPathToModule(elmRoot, sourceDirs, testsPath) {
};
}

function findModule(elmRoot, sourceDirs, pathName) {
function findModule(elmRoot, sourceDirs = ["./src"], pathName) {
for (var i = 0; i < sourceDirs.length; i++) {
const dir = sourceDirs[i];
const module = path.join(elmRoot, dir, pathName);
Expand Down

0 comments on commit 725e740

Please sign in to comment.