Skip to content

docs: add example to optionalDependencies section#9363

Merged
owlstronaut merged 1 commit into
npm:latestfrom
verifizieren:docs/optional-dependencies-example
May 15, 2026
Merged

docs: add example to optionalDependencies section#9363
owlstronaut merged 1 commit into
npm:latestfrom
verifizieren:docs/optional-dependencies-example

Conversation

@verifizieren
Copy link
Copy Markdown
Contributor

Summary

Adds a small package.json example to the optionalDependencies section of the package.json docs, so readers can see the expected shape at a glance without parsing the surrounding prose.

Closes #9325.

Test plan

  • npm run build --workspace=docs succeeds.
  • npm test --workspace=docs passes (100% coverage, lint, template-oss-check).
  • Rendered HTML in docs/output/configuring-npm/package-json.html shows the example as a language-json code block between the intro paragraph and the "It is still your program's responsibility..." paragraph; surrounding sections and TOC unchanged.

@verifizieren verifizieren requested review from a team as code owners May 15, 2026 17:50
@owlstronaut owlstronaut merged commit c97b39b into npm:latest May 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] optionalDependencies lacks example

2 participants