Commit a2c80e5
committed
Cap
`comment-parser` 1.4.2 changed how it tokenizes a tag body, so the `{…}`
metadata that `script/info.js` reads from the line after each `@example`
is now captured as the tag type instead of staying in the description.
`JSON.parse` then receives an empty string and throws, which breaks
`generate` and `test-api` on a fresh install, as the range was `^1.0.0`
with no lockfile to hold an older resolution.
Constrain the range to `<1.4.2` so installs keep a release that leaves
the metadata in the description, until `info.js` is taught to parse
examples with an explicit tokenizer that does not treat `{…}` as a type.comment-parser below 1.4.21 parent afa793b commit a2c80e5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments