@@ -368,7 +368,7 @@ For example, myapp could have this:
368368``` json
369369{
370370 "bin" : {
371- "myapp" : " . /cli.js"
371+ "myapp" : " bin /cli.js"
372372 }
373373}
374374```
@@ -385,7 +385,7 @@ package, then you can just supply it as a string. For example:
385385{
386386 "name" : " my-program" ,
387387 "version" : " 1.2.5" ,
388- "bin" : " ./ path/to/program"
388+ "bin" : " path/to/program"
389389}
390390```
391391
@@ -396,7 +396,7 @@ would be the same as this:
396396 "name" : " my-program" ,
397397 "version" : " 1.2.5" ,
398398 "bin" : {
399- "my-program" : " ./ path/to/program"
399+ "my-program" : " path/to/program"
400400 }
401401}
402402```
@@ -497,7 +497,7 @@ walking the folder.
497497### repository
498498
499499Specify the place where your code lives. This is helpful for people who
500- want to contribute. If the git repo is on GitHub, then the ` npm docs `
500+ want to contribute. If the git repo is on GitHub, then the ` npm repo `
501501command will be able to find you.
502502
503503Do it like this:
@@ -818,11 +818,12 @@ to express this. If you depend on features introduced in 1.5.2, use
818818
819819# ## peerDependenciesMeta
820820
821- When a user installs your package, npm will emit warnings if packages
822- specified in ` peerDependencies` are not already installed. The
823- ` peerDependenciesMeta` field serves to provide npm more information on how
821+ The ` peerDependenciesMeta` field serves to provide npm more information on how
824822your peer dependencies are to be used. Specifically, it allows peer
825- dependencies to be marked as optional.
823+ dependencies to be marked as optional. Npm will not automatically install
824+ optional peer dependencies. This allows you to
825+ integrate and interact with a variety of host packages without requiring
826+ all of them to be installed.
826827
827828For example:
828829
@@ -842,11 +843,6 @@ For example:
842843}
843844` ` `
844845
845- Marking a peer dependency as optional ensures npm will not emit a warning
846- if the ` soy-milk` package is not installed on the host. This allows you to
847- integrate and interact with a variety of host packages without requiring
848- all of them to be installed.
849-
850846# ## bundleDependencies
851847
852848This defines an array of package names that will be bundled when publishing
0 commit comments