Skip to content

Commit

Permalink
fix: provide default source directories for packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ymtszw committed Feb 13, 2024
1 parent 400d70f commit 32cf154
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 32cf154

Please sign in to comment.