@@ -368,7 +368,7 @@ For example, myapp could have this:
368
368
``` json
369
369
{
370
370
"bin" : {
371
- "myapp" : " . /cli.js"
371
+ "myapp" : " bin /cli.js"
372
372
}
373
373
}
374
374
```
@@ -385,7 +385,7 @@ package, then you can just supply it as a string. For example:
385
385
{
386
386
"name" : " my-program" ,
387
387
"version" : " 1.2.5" ,
388
- "bin" : " ./ path/to/program"
388
+ "bin" : " path/to/program"
389
389
}
390
390
```
391
391
@@ -396,7 +396,7 @@ would be the same as this:
396
396
"name" : " my-program" ,
397
397
"version" : " 1.2.5" ,
398
398
"bin" : {
399
- "my-program" : " ./ path/to/program"
399
+ "my-program" : " path/to/program"
400
400
}
401
401
}
402
402
```
@@ -497,7 +497,7 @@ walking the folder.
497
497
### repository
498
498
499
499
Specify 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 `
501
501
command will be able to find you.
502
502
503
503
Do it like this:
@@ -818,11 +818,12 @@ to express this. If you depend on features introduced in 1.5.2, use
818
818
819
819
# ## peerDependenciesMeta
820
820
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
824
822
your 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.
826
827
827
828
For example:
828
829
@@ -842,11 +843,6 @@ For example:
842
843
}
843
844
` ` `
844
845
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
-
850
846
# ## bundleDependencies
851
847
852
848
This defines an array of package names that will be bundled when publishing
0 commit comments