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

shipped production is serving it opened this has it
opened this

Done:

  • [x] 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
  • [x] scripts as rows (name, command in mono), dependencies and devDependencies as rows with their range, engines and type in one line
  • [x] malformed JSON falls back to source with no error banner; every value escaped (test with <script> in a script)
  • [x] the terminal's file view shows the same rows if it shares the renderer; otherwise say so in the pull

Files: src/web/render/kinds.ts, src/web/render/renderers.ts, the new renderer, a test.

commented

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.

commented

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs