mdv-live 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/tree.js +2 -2
package/package.json
CHANGED
package/src/api/tree.js
CHANGED
|
@@ -7,7 +7,7 @@ import path from 'path';
|
|
|
7
7
|
import { getFileType } from '../utils/fileTypes.js';
|
|
8
8
|
import { getRelativePath, validatePath } from '../utils/path.js';
|
|
9
9
|
|
|
10
|
-
const IGNORED_PATTERNS = new Set(['node_modules', '__pycache__']);
|
|
10
|
+
const IGNORED_PATTERNS = new Set(['node_modules', '__pycache__', '.git']);
|
|
11
11
|
const MAX_INITIAL_DEPTH = 1;
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -16,7 +16,7 @@ const MAX_INITIAL_DEPTH = 1;
|
|
|
16
16
|
* @returns {boolean} True if should be ignored
|
|
17
17
|
*/
|
|
18
18
|
function shouldIgnore(name) {
|
|
19
|
-
return
|
|
19
|
+
return IGNORED_PATTERNS.has(name);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/**
|