Skip to content

[DOCS] alias dependency in package.json #6839

Description

@allevo

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Problem, not another kind of Docs Problem.

  • This is a CLI Docs Problem.

Description of Problem

Accordingly with https://github.com/npm/rfcs/blob/main/implemented/0001-package-aliases.md and #3, I can use alias package in the dependencies section.
So, I can run pnpm install orama1.2.8@npm:@orama/orama@1.2.8. This adds a new entry in my package.json like:

{
  "dependencies": {
    "orama1.2.8": "npm:@orama/orama@1.2.8"
  }
}

The format npm:*** is not listed in the documentation here, and this creates some confusion.

Potential Solution

Put in the list the "npm:**" format.

Affected URL

https://docs.npmjs.com/cli/v10/configuring-npm/package-json#dependencies

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issuePriority 2secondary priority issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions