Skip to content

[DOCS] alias dependency in package.json #6839

@allevo

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/[email protected]. This adds a new entry in my package.json like:

{
  "dependencies": {
    "orama1.2.8": "npm:@orama/[email protected]"
  }
}

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

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