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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/api/tree.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdv-live",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Markdown Viewer - File tree + Live preview + Marp support + Hot reload",
5
5
  "main": "src/server.js",
6
6
  "bin": {
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 name.startsWith('.') || IGNORED_PATTERNS.has(name);
19
+ return IGNORED_PATTERNS.has(name);
20
20
  }
21
21
 
22
22
  /**