Skip to content

[FEATURE request] Please add validation of name property #69

@kopach

Description

@kopach

I've had issue with tsc not compiling my project due to name problem. Basically, it can contain only 1 slash / character. In my case there were 2 of them

Here is the warning shown to me by VSCode when 2 slashes used
String does not match the pattern of "^(?:(?:@(?:[a-z0-9-*~][a-z0-9-*._~]*)?/[a-z0-9-._~])|[a-z0-9-~])[a-z0-9-._~]*$". The name of the package.

Would be great to add same validation to this package. Thanks

Some refs to the problem: nrwl/nx#15464 (comment)


Or maybe just validating entire package.json with this schema? https://www.schemastore.org/schemas/json/package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions