I want to publish my library first time on NPM.
I want it to be public. So in the package.json
file of my library I have
"name": "firstname-lastname/testlib123"
so my first name
- my last name
/ my library name in my case it is testlib123
and I get error:
Invalid name when I try to publish.
Also in VS code i have this warning:
String does not match the pattern of "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$".
I don't understand regex. Where is my mistake ?