Skip to content

supportedArchitectures using the CLI #7510

@root-io

Description

@root-io

Contribution

Describe the user story

https://pnpm.io/package_json#pnpmsupportedarchitectures

Instead of declaring this in my package.json:

{
  "pnpm": {
    "supportedArchitectures": {
      "os": ["win32", "darwin", "current"],
      "cpu": ["x64", "arm64"]
    }
  }
}

I want to be able to do it with the cli like npm does.

Describe the solution you'd like

Something like pnpm install --cpu=arm64 --os=darwin --libc=musl my-package

Describe the drawbacks of your solution

Maintenance of both solution

Describe alternatives you've considered

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions