Commit fb22906
committed
fix(extract): handle nested excludes and symlinks to directories
detect_excludes only checked if exclude patterns existed at the project
root, missing patterns like node_modules at deeper levels (e.g.
docs/node_modules/). Always include all DEFAULT_EXCLUDES since
should_exclude already handles nested matching via path components.
Also skip symlinks that resolve to directories during scan. pnpm's
node_modules/.pnpm uses symlinks to directories, and walkdir reports
these as non-directory entries, causing read_to_string to fail with
"Is a directory".1 parent 761fcd5 commit fb22906
2 files changed
Lines changed: 36 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
81 | 70 | | |
82 | 71 | | |
83 | 72 | | |
| |||
191 | 180 | | |
192 | 181 | | |
193 | 182 | | |
194 | | - | |
195 | | - | |
196 | 183 | | |
197 | 184 | | |
| 185 | + | |
198 | 186 | | |
199 | 187 | | |
200 | | - | |
201 | 188 | | |
| 189 | + | |
202 | 190 | | |
203 | 191 | | |
204 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
127 | 155 | | |
128 | 156 | | |
129 | 157 | | |
| |||
0 commit comments