Skip to content

feat(add/install): --npm and --jsr flags for deno add/install #28666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 1, 2025

Conversation

nathanwhit
Copy link
Member

@nathanwhit nathanwhit commented Mar 29, 2025

Flags to set the default registry for "bare" package names (no npm: or jsr: prefix)

deno add --npm chalk react @types/react jsr:@std/fs
deno add --jsr @std/fs @std/async @std/fmt npm:chalk

@nathanwhit nathanwhit requested a review from dsherret March 29, 2025 01:49
@nathanwhit nathanwhit marked this pull request as ready for review March 29, 2025 01:50
Copy link
Contributor

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left one question

@nathanwhit nathanwhit enabled auto-merge (squash) April 1, 2025 18:17
@nathanwhit nathanwhit merged commit 5e20982 into denoland:main Apr 1, 2025
17 checks passed
@dsherret dsherret added this to the 2.3.0 milestone Apr 1, 2025
@nathanwhit nathanwhit deleted the add-jsr-npm branch April 1, 2025 19:23
littledivy pushed a commit that referenced this pull request Apr 4, 2025
Flags to set the default registry for "bare" package names (no `npm:` or
`jsr:` prefix)
```
deno add --npm chalk react @types/react jsr:@std/fs
deno add --jsr @std/fs @std/async @std/fmt npm:chalk
```
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.

3 participants