Skip to content

docs: document deno x --package flag (2.8)#3082

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

docs: document deno x --package flag (2.8)#3082
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-x-package-flag

Conversation

@lunadogbot
Copy link
Copy Markdown

Summary

Documents the new --package / -p flag on deno x shipping in Deno 2.8 (denoland/deno#32855). It separates the package to install from the binary to execute, matching the npx -p <package> <binary> convention.

  • New "Specifying the package separately from the binary" section in runtime/reference/cli/x.md.
  • Examples for both -p typescript tsc and the version-pinned -p typescript@5 tsc.
  • Notes that the existing package/binary form is unaffected.

Test plan

  • deno task serve — section renders, anchor resolves.

Adds a section to x.md describing the new --package / -p flag, which
matches \`npx -p <package> <binary>\` for cases like \`typescript\`
that expose multiple binaries. Notes the package@version pinning form
and that the older \`package/binary\` form still works.

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