We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 500b54b commit d9ddc8bCopy full SHA for d9ddc8b
src/build/build-circular-deps.ts
@@ -13,16 +13,24 @@ export async function buildCircularDeps(basePath: string): Promise<boolean> {
13
const madgeRes = await madge(path.join(basePath, "src"), {
14
fileExtensions: ["ts"],
15
detectiveOptions: {
16
- skipTypeImports: true,
+ ts: {
17
+ skipTypeImports: true,
18
+ },
19
},
20
}),
21
circularDeps = madgeRes.circular();
22
23
if (circularDeps.length) {
- throw new Error(`Circular dependencies found: ${circularDeps.join(", ")}`);
- }
24
+ console.error("Circular dependencies found!");
25
+
26
+ for (const dep of circularDeps) {
27
+ console.error(`${dep.join(" > ")}`);
28
+ }
29
- res = true;
30
+ res = false;
31
+ } else {
32
+ res = true;
33
34
} catch (e) {
35
console.error(e);
36
}
0 commit comments