From 2a6b6d4ccb2704ccda1181255d1952073621bac3 Mon Sep 17 00:00:00 2001 From: sverweij Date: Sat, 24 Feb 2024 23:09:18 +0100 Subject: [PATCH] fix: corrects typo in config --- .dependency-cruiser.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.dependency-cruiser.json b/.dependency-cruiser.json index 793266f27..f91889c16 100644 --- a/.dependency-cruiser.json +++ b/.dependency-cruiser.json @@ -245,11 +245,11 @@ "comment": "(sample rule to demo reachable rules with capturing groups)", "severity": "info", "from": { - "path": "^src/([^/]+)/index[.]js$" + "path": "^src/([^/]+)/index[.][cm]js$" }, "to": { "path": ["^src/$1/"], - "pathNot": "[.]d[.]ts$", + "pathNot": ["[.]d[.]ts$", "^src/report/"], "reachable": false } }, @@ -365,10 +365,9 @@ "aliasFields": ["browser"], "conditionNames": ["import", "require"], "extensions": [ - ".js", - // - // ".cjs", + ".cjs", ".mjs", + ".js", // ".jsx", // ".ts", // ".cts",