Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kopach opened this issue Oct 17, 2023 · 0 comments
Open

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

kopach opened this issue Oct 17, 2023 · 0 comments

Comments

@kopach
Copy link

kopach commented Oct 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant