Repository navigation
Commit f31c2ac
committed
🔧 Read through the package filesystem and prove the graph ships (#83)
Two corrections to `0f179628`.
`stat` comes from `@effectionx/fs` and is yielded directly, so the packaged-
document walk goes through the repository's filesystem like everything else on
this path. `node:fs/promises` keeps only what the package does not provide —
recursive copy, temp directories, and a recursive listing, since its own
`readdir` takes no options — and the import comment now says so.
The npm proof is the contract rather than the symptom. `cli-npm-bin.test.ts`
compares every entry of `REVIEW_DOCUMENTS` against its emitted copy under
`npm/esm/src/documents/`, byte for byte, plus `src/components.md`. Driven by the
manifest rather than a count or a second list: a component added to the graph
and not shipped is exactly what has to fail, and a hand-kept list is what would
not notice. Presence and content are told apart so a missing asset reports as
one instead of an unexplained ENOENT.
Three mutations discriminate it: copying directories as files reproduces the
original EINVAL; skipping nested documents builds a clean package the review
cannot resolve a component from; and altering one emitted document's bytes,
which loads and digests fine, is caught by the byte comparison alone and named.1 parent 0f17962 commit f31c2ac
2 files changed
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | | - | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
152 | 186 | | |
153 | 187 | | |
154 | 188 | | |
| |||
0 commit comments