Skip to content

[CLI] Adding library to libman.json should be consistent for CLI install and UI install #299

Open
@YangLyu89

Description

@YangLyu89

Minimal repro steps

  1. run libman install [email protected] on CLI
  2. open UI adding client-side libraries, and install a library like "[email protected]"
  3. open the libman.json file

Expected result

The libman.json should be look like something:

{
  "version": "1.0",
  "defaultProvider": "cdnjs",
  "libraries": [
    {
      "library": "[email protected]",
      "destination": "wwwroot/lib/jquery"
    },
    {
      "provider": "cdnjs",
      "library": "[email protected]",
      "destination": "wwwroot/jo/"
    }
  ]
}

Actual result

{
  "version": "1.0",
  "defaultProvider": "cdnjs",
  "libraries": [
    {
      "library": "[email protected]",
      "destination": "wwwroot\\lib\\jquery"
    },
    {
      "provider": "cdnjs",
      "library": "[email protected]",
      "destination": "wwwroot/jo/"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions