From 7f3cc9cdbe2016345d69cbd17cc5402b8feae104 Mon Sep 17 00:00:00 2001 From: Kadzuya Okamoto Date: Tue, 16 Apr 2024 12:27:44 +0900 Subject: [PATCH] fix: provide default source directory when building config --- bin/cli-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli-helpers.js b/bin/cli-helpers.js index 5cae9dc..eb01566 100644 --- a/bin/cli-helpers.js +++ b/bin/cli-helpers.js @@ -40,7 +40,7 @@ function resolveTests(configPath, config) { } } if (config.tests === "all" || config.tests.includes("all")) { - var allElmFiles = config["source-directories"] + var allElmFiles = (config["source-directories"] ?? ["./src"]) .map((d) => globSync("**/*.elm", { cwd: path.join(path.dirname(configPath), "..", d),