Commit d9a6585
fix: handle missing name/version in package.json (#151)
* fix: handle missing name/version in package.json
When analyzing monorepos, the root package.json may not have name or
version fields, causing a crash in the analyze command. This adds
fallback values consistent with computeInfo().
* fix: default version to 0.0.0 for valid semver
---------
Co-authored-by: Benjamin Newman <benjaminnewman@Benjamins-Laptop.local>1 parent 65cb386 commit d9a6585
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments