Commit c1b545e
committed
fix(conform): evaluate function-form commands at probe time
Trusting a function-form command blindly as self-resolving let the
prettier dep silently leave the install/warn contract: on a fresh
machine with no node_modules copy and no global binary, nothing would
ever install it or name it in the aggregated warning (a regression
against main's ensure_installed loop).
Evaluate the function against the probe-time buffer the way conform
will: a project-local node_modules bin passes the $PATH check as-is,
the bare-name fallback re-enters install/warn via the bin index, and a
failed or non-string evaluation degrades to the previous self-resolving
behavior — never a typo report.1 parent dd93d23 commit c1b545e
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
196 | 201 | | |
197 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
198 | 209 | | |
199 | 210 | | |
200 | 211 | | |
| |||
0 commit comments