Skip to content

BUG: Builders.FromNodePackageJson.ComponentBuilder cuts names after second slash #599

@jkowalleck

Description

@jkowalleck

Even though https://npmjs.org does not allow it, there is nothing wrong with a package name that contains more than one slash(/).
It is completely compliant to NodeJS rules and will be properly resolved. read PackageJson spec

examples:

  • @foo/bar - group: @foo, name: bar
  • @foo/bar/baz - group: @foo, name: bar/baz
  • foo/bar - - group: none, name: foo/bar

current implementation of Builders.FromNodePackageJson.ComponentBuilder cuts off everything after (and including) the second slash(/)
This is unacceptable and should be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions