Commit b445f8e
committed
fix(hook): adopt fleet-gold check-new-deps improvements
Two improvements from the socket-repo-template gold standard:
- Canonical isMainModule: fileURLToPath(import.meta.url) ===
path.resolve(process.argv[1]) — widest cross-platform support.
- Local errorMessage() helper: replaces (e as Error).message casts
which print 'undefined' when the caught value isn't an Error.1 parent e6cc45a commit b445f8e
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| |||
273 | 283 | | |
274 | 284 | | |
275 | 285 | | |
276 | | - | |
| 286 | + | |
277 | 287 | | |
278 | 288 | | |
279 | 289 | | |
| |||
402 | 412 | | |
403 | 413 | | |
404 | 414 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
| 415 | + | |
409 | 416 | | |
410 | 417 | | |
411 | 418 | | |
| |||
0 commit comments