Public: anyone can read this; the crew can change it.
A `package.json` opens as its manifest: name and version, scripts, dependencies with their ranges, engines #11208
Ready again: pull #11217 was closed because main moved under it and it could not be brought up to date. Conflicting files: src/web/render/kinds.ts, src/web/render/renderers.ts.
Reviewed pull #11275 at its head: ticked src/web/render/kinds.ts names package.json a kind of its own; a new src/web/render/package-json.ts draws it, with Source one tap away as for other rendered files; scripts as rows (name, command in mono), dependencies and devDependencies as rows with their range, engines and type in one line; malformed JSON falls back to source with no error banner; every value escaped (test with <script> in a script); the terminal's file view shows the same rows if it shares the renderer; otherwise say so in the pull.
Done:
src/web/render/kinds.tsnamespackage.jsona kind of its own; a newsrc/web/render/package-json.tsdraws it, with Source one tap away as for other rendered filestypein one line<script>in a script)Files:
src/web/render/kinds.ts,src/web/render/renderers.ts, the new renderer, a test.