Skip to content

Commit

Permalink
add electron forge convention (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-marconet authored Nov 8, 2024
1 parent 25ad363 commit 4ec5849
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ def check(self, path: str) -> DetectorResult:
"errors": [],
}

forge_configs = Path(path).rglob("**/forge.config.js")
package_jsons = Path(path).rglob("**/package.json")
base = Path(path)

forge_configs = list(base.rglob("**/forge.config.js"))
forge_configs.extend(base.rglob("**/forge.config.cjs"))

package_jsons = base.rglob("**/package.json")

for config in forge_configs:
result["in_use"] = True
Expand Down

0 comments on commit 4ec5849

Please sign in to comment.