Dev dep vs dep in package.json diagram
- User
Dev dep vs dep in package.json diagram
Assistant
Below is a concise ASCII diagram that shows how the two top-level keys in package.json relate to the final runtime vs build-time code.
package.json ├─ "dependencies" (runtime deps) │ └─ code that ships to production │ ├─ express │ ├─ lodash │ └─ … │ └─ "devDependencies" (build / test / lint deps) └─ code that is NOT bundled or executed in production ├─ typescript ├─ jest ├─ eslint └─ …Key take-aways
•npm installinstalls both sets.
•npm install --productionskipsdevDependencies.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.