Skip to content

docs: document --package-json flag (2.8)#3075

Open
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-package-json-flag
Open

docs: document --package-json flag (2.8)#3075
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-package-json-flag

Conversation

@lunadogbot
Copy link
Copy Markdown

Summary

Documents the new --package-json flag added to deno add / install / remove / uninstall in Deno 2.8 (denoland/deno#33199). When set, dependency management is forced to operate on package.json (creating one if necessary), bypassing the distance-based config-file heuristic.

  • New "deno install --package-json" subsection in runtime/reference/cli/install.md.
  • Companion paragraph in runtime/reference/cli/add.md under "Where dependencies are stored".
  • Calls out the JSR-to-npm-compat (npm:@jsr/...) rewrite when JSR deps go into package.json.

Test plan

  • deno task serve — both pages render.
  • If reviewers prefer one combined section instead of edits in two pages, happy to refactor.

… (2.8)

Documents the new --package-json flag that forces dependency
management to use package.json regardless of which config file is
closer to the working directory. Adds it to install.md and add.md, and
notes that JSR packages get rewritten to their npm-compatible form
when written to package.json.

Refs denoland/deno#33199
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.

1 participant