docs: document --package-json flag (2.8)#3075
Open
lunadogbot wants to merge 1 commit intodenoland:mainfrom
Open
docs: document --package-json flag (2.8)#3075lunadogbot wants to merge 1 commit intodenoland:mainfrom
--package-json flag (2.8)#3075lunadogbot wants to merge 1 commit intodenoland:mainfrom
Conversation
… (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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents the new
--package-jsonflag added todeno add/install/remove/uninstallin Deno 2.8 (denoland/deno#33199). When set, dependency management is forced to operate onpackage.json(creating one if necessary), bypassing the distance-based config-file heuristic.runtime/reference/cli/install.md.runtime/reference/cli/add.mdunder "Where dependencies are stored".npm:@jsr/...) rewrite when JSR deps go intopackage.json.Test plan
deno task serve— both pages render.