Skip to content

Commit

Permalink
fix: do not follow node_modules by default
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Aug 13, 2021
1 parent aa8b6ef commit 97a55f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export async function analyzeDependency({
};
const ARRAY_OF_FILES_AND_DIRS_TO_CRUISE: string[] = [ROOT_DIR];
const cruiseResult: IReporterOutput = cruise(ARRAY_OF_FILES_AND_DIRS_TO_CRUISE, {
includeOnly
includeOnly,
doNotFollow: "^node_modules"
});
if (typeof cruiseResult.output !== "object") {
throw new Error("NO OUTPUT");
Expand Down

0 comments on commit 97a55f1

Please sign in to comment.