I am looking to make my library accessible on NPM for the first time.
I want it to be available publicly, so in the package.json
file of my library, I have
"name": "firstname-lastname/testlib123"
This means my first name
- my last name
/
my library name (testlib123 in this case)
However, when I try to publish, I receive an error:
The name is invalid.
In addition, I see a warning in VS Code:
The string does not match the pattern of "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$"".
I'm unsure about regex. Where did I go wrong?