@@ -367,11 +367,11 @@ feature to install the "npm" executable.)
367367To use this, supply a ` bin ` field in your package.json which is a map of
368368command name to local file name. When this package is installed globally,
369369that file will be either linked inside the global bins directory or
370- a cmd (Windows Command File) will be created which executes the specified
370+ a cmd (Windows Command File) will be created which executes the specified
371371file in the ` bin ` field, so it is available to run by ` name ` or ` name.cmd ` (on
372- Windows PowerShell). When this package is installed as a dependency in another
372+ Windows PowerShell). When this package is installed as a dependency in another
373373package, the file will be linked where it will be available to that package
374- either directly by ` npm exec ` or by name in other scripts when invoking them
374+ either directly by ` npm exec ` or by name in other scripts when invoking them
375375via ` npm run-script ` .
376376
377377
@@ -385,10 +385,10 @@ For example, myapp could have this:
385385}
386386```
387387
388- So, when you install myapp, in case of unix-like OS it'll create a symlink
389- from the ` cli.js ` script to ` /usr/local/bin/myapp ` and in case of windows it
388+ So, when you install myapp, in case of unix-like OS it'll create a symlink
389+ from the ` cli.js ` script to ` /usr/local/bin/myapp ` and in case of windows it
390390will create a cmd file usually at ` C:\Users\{Username}\AppData\Roaming\npm\myapp.cmd `
391- which runs the ` cli.js ` script.
391+ which runs the ` cli.js ` script.
392392
393393If you have a single executable, and its name should be the name of the
394394package, then you can just supply it as a string. For example:
@@ -518,7 +518,7 @@ Do it like this:
518518{
519519 "repository" : {
520520 "type" : " git" ,
521- "url" : " https://github.com/npm/cli.git"
521+ "url" : " git+ https://github.com/npm/cli.git"
522522 }
523523}
524524```
@@ -553,8 +553,8 @@ which it lives:
553553{
554554 "repository" : {
555555 "type" : " git" ,
556- "url" : " https://github.com/facebook/react .git" ,
557- "directory" : " packages/react-dom "
556+ "url" : " git+ https://github.com/npm/cli .git" ,
557+ "directory" : " workspaces/libnpmpublish "
558558 }
559559}
560560```
0 commit comments