Skip to content

Commit 3d9c567

Browse files
authored
Update creating-a-package-json-file.mdx
Add missing information use secure hyperText Transfer Protocol : https
1 parent 061a040 commit 3d9c567

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/packages-and-modules/contributing-packages-to-the-registry/creating-a-package-json-file.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A `package.json` file:
2525

2626
A `package.json` file must contain `"name"` and `"version"` fields.
2727

28-
The `"name"` field contains your package's name, and must be lowercase and one word, and may contain hyphens and underscores.
28+
The `"name"` field contains your package's name, and must be lowercase and one word, and may contain hyphens, dots and underscores.
2929

3030
The `"version"` field must be in the form `x.x.x` and follow the [semantic versioning guidelines][semver].
3131

@@ -34,7 +34,7 @@ The `"version"` field must be in the form `x.x.x` and follow the [semantic versi
3434
If you want to include package author information in `"author"` field, use the following format (email and website are both optional):
3535

3636
```
37-
Your Name <[email protected]> (http://example.com)
37+
Your Name <[email protected]> (https://example.com)
3838
```
3939

4040
### Example
@@ -43,7 +43,7 @@ Your Name <[email protected]> (http://example.com)
4343
{
4444
"name": "my-awesome-package",
4545
"version": "1.0.0",
46-
"author": "Your Name <[email protected]> (http://example.com)"
46+
"author": "Your Name <[email protected]> (https://example.com)"
4747
}
4848
```
4949

0 commit comments

Comments
 (0)