Commit 88f1e2b
committed
Skip orphaned CSS without a matching .pcss
The prune step removes orphaned .css before a build, but
export-css-selectors itself still mapped any stray .css it globbed
into static/classes.json -- so a leftover file, or running the script
directly, could re-introduce dead component selectors.
Filters the glob to .css that still have a sibling .pcss for folders
generated from .pcss (app/components/primer). Hand-authored stylesheets
under app/lib/primer/css have no .pcss and are left untouched via a
requireSource flag, so their per-file json keeps generating.1 parent 94294c3 commit 88f1e2b
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | | - | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
0 commit comments