Commit 226b93c
committed
fix(docs): only list component examples that loaded
`listComponentExamples()` serialized the scanned names even when a file could not be read, so it could advertise an example `getComponentExample()` returns null for. Track the names that actually loaded, and only swallow ENOENT: malformed JSON now fails the build instead of silently shipping an incomplete set.1 parent 5c773e3 commit 226b93c
1 file changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
| 148 | + | |
143 | 149 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
148 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
149 | 163 | | |
150 | 164 | | |
151 | | - | |
| 165 | + | |
152 | 166 | | |
153 | 167 | | |
154 | 168 | | |
| |||
0 commit comments