A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/55639efd2d3094ca0931ddf9276c93f6880cd6e6 below:

use git+https in package.com url examples (#7615) · npm/cli@55639ef · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+9

-9

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+9

-9

lines changed Original file line number Diff line number Diff line change

@@ -367,11 +367,11 @@ feature to install the "npm" executable.)

367 367

To use this, supply a `bin` field in your package.json which is a map of

368 368

command name to local file name. When this package is installed globally,

369 369

that 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

371 371

file 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

373 373

package, 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

375 375

via `npm run-script`.

376 376 377 377

@@ -385,10 +385,10 @@ For example, myapp could have this:

385 385

}

386 386

```

387 387 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

390 390

will 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.

392 392 393 393

If you have a single executable, and its name should be the name of the

394 394

package, then you can just supply it as a string. For example:

@@ -518,7 +518,7 @@ Do it like this:

518 518

{

519 519

"repository": {

520 520

"type": "git",

521 -

"url": "https://github.com/npm/cli.git"

521 +

"url": "git+https://github.com/npm/cli.git"

522 522

}

523 523

}

524 524

```

@@ -553,8 +553,8 @@ which it lives:

553 553

{

554 554

"repository": {

555 555

"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"

558 558

}

559 559

}

560 560

```

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4