Skip to content

Commit e647d0d

Browse files
author
Amelia Wattenbeger
committed
never visualize .git folder
1 parent 986ef0b commit e647d0d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A list of paths to exclude from the diagram, separated by commas.
1818

1919
For example: dist,node_modules
2020

21-
Default: node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock
21+
Default: node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.vscode,package-lock.json,yarn.lock
2222

2323
## Example usage
2424

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10158,7 +10158,7 @@ var processDir = async (rootPath, excludedPaths = []) => {
1015810158
console.log("no rootPath specified");
1015910159
return;
1016010160
}
10161-
const foldersToIgnore = excludedPaths;
10161+
const foldersToIgnore = [".git", ...excludedPaths];
1016210162
const fullPathFoldersToIgnore = foldersToIgnore.map((d) => `${rootPath}/${d}`);
1016310163
const getFileStats = async (path = "") => {
1016410164
const stats = await import_fs.default.statSync(path);

src/process-dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const processDir = async (rootPath, excludedPaths = []) => {
66
return;
77
}
88

9-
const foldersToIgnore = excludedPaths
9+
const foldersToIgnore = [.git, ...excludedPaths]
1010
const fullPathFoldersToIgnore = foldersToIgnore.map((d) =>
1111
`${rootPath}/${d}`
1212
);

0 commit comments

Comments
 (0)