Update config option formatting for the init command. (#167)
The previous commands would result in errors like this: ``` npm WARN config init.author.name Use `--init-author-name` instead. ```
Lucas Garron committed
Aug 2, 2022 at 05:50 UTC
d960b75cfd43c11d447b4f644fbb93121c035c37
1 file changed
+3
-3
content/packages-and-modules/contributing-packages-to-the-registry/creating-a-package-json-file.mdx
+3
-3
@@ -155,9 +155,9 @@ Wrote to /home/monatheoctocat/my_package/package.json:
155
You can set default config options for the init command. For example, to set the default author email, author name, and license, on the command line, run the following commands:
156
157
```
158
-> npm set init.author.email "example-user@example.com"
159
-> npm set init.author.name "example_user"
160
-> npm set init.license "MIT"
158
+> npm set init-author-email "example-user@example.com"
159
+> npm set init-author-name "example_user"
160
+> npm set init-license "MIT"
161
```
162
163
[semver]: about-semantic-versioning