You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/cli/v10/commands/npm-ls.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ Note: to get a "bottoms up" view of why a given package is included in the tree
52
52
Positional arguments are `name@version-range` identifiers, which will limit the results to only the paths to the packages named. Note that nested packages will _also_ show the paths to the specified packages. For example, running `npm ls promzard` in npm's source tree will show:
Copy file name to clipboardExpand all lines: content/cli/v10/configuring-npm/package-json.mdx
+20-8Lines changed: 20 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -206,22 +206,34 @@ npm also sets a top-level "maintainers" field with your npm user info.
206
206
207
207
### funding
208
208
209
-
You can specify an object containing a URL that provides up-to-date information about ways to help fund development of your package, or a string URL, or an array of these:
209
+
You can specify an object containing a URL that provides up-to-date information about ways to help fund development of your package, a string URL, or an array of objects and string URLs:
210
210
211
211
```json
212
212
{
213
213
"funding": {
214
214
"type": "individual",
215
215
"url": "http://example.com/donate"
216
-
},
216
+
}
217
+
}
218
+
```
217
219
220
+
```json
221
+
{
218
222
"funding": {
219
223
"type": "patreon",
220
224
"url": "https://www.patreon.com/my-account"
221
-
},
225
+
}
226
+
}
227
+
```
222
228
223
-
"funding": "http://example.com/donate",
229
+
```json
230
+
{
231
+
"funding": "http://example.com/donate"
232
+
}
233
+
```
224
234
235
+
```json
236
+
{
225
237
"funding": [
226
238
{
227
239
"type": "individual",
@@ -236,7 +248,7 @@ You can specify an object containing a URL that provides up-to-date information
236
248
}
237
249
```
238
250
239
-
Users can use the `npm fund` subcommand to list the `funding` URLs of all dependencies of their project, direct and indirect. A shortcut to visit each funding url is also available when providing the project name such as: `npm fund <projectname>` (when there are multiple URLs, the first one will be visited)
251
+
Users can use the `npm fund` subcommand to list the `funding` URLs of all dependencies of their project, direct and indirect. A shortcut to visit each funding URL is also available when providing the project name such as: `npm fund <projectname>` (when there are multiple URLs, the first one will be visited)
240
252
241
253
### files
242
254
@@ -419,7 +431,7 @@ Do it like this:
419
431
{
420
432
"repository": {
421
433
"type": "git",
422
-
"url": "https://github.com/npm/cli.git"
434
+
"url": "git+https://github.com/npm/cli.git"
423
435
}
424
436
}
425
437
```
@@ -448,8 +460,8 @@ If the `package.json` for your package is not in the root directory (for example
-[`3101a40`](https://github.com/npm/cli/commit/3101a4045bd7030f232d6cb2ae61339214968321)[#7631](https://github.com/npm/cli/pull/7631) limit concurrent open files during 'npm cache verify' (#7631) (@oikumene)
23
+
-[`2273183`](https://github.com/npm/cli/commit/22731831e22011e32fa0ca12178e242c2ee2b33d)[#7595](https://github.com/npm/cli/pull/7595) outdated: fixed wanted range for alias with version range (#7595) (@milaninfy)
24
+
-[`15be6dd`](https://github.com/npm/cli/commit/15be6dd33bfab8bdfaf8c3dece435d7139c1bf6d)[#7574](https://github.com/npm/cli/pull/7574) don't try parsing workspaces if none exist (@wraithgar)
25
+
26
+
### Documentation
27
+
28
+
-[`ac937d4`](https://github.com/npm/cli/commit/ac937d4f29b27fb877f79f33034ee1144c7202c4)[#7616](https://github.com/npm/cli/pull/7616) install: add save-peer flag (#7616) (@drew4237)
29
+
-[`55639ef`](https://github.com/npm/cli/commit/55639efd2d3094ca0931ddf9276c93f6880cd6e6)[#7615](https://github.com/npm/cli/pull/7615) use git+https in package.com url examples (#7615) (@MikeMcC399)
30
+
-[`93883bb`](https://github.com/npm/cli/commit/93883bb6459208a916584cad8c6c72a315cf32af)[#7582](https://github.com/npm/cli/pull/7582) Improve manpage section for `package.json``funding` properties (#7582) (@kemitchell)
31
+
-[`92e71e6`](https://github.com/npm/cli/commit/92e71e6b0c7889e243e6b54ef8b4eb9656de95f8)[#7576](https://github.com/npm/cli/pull/7576) fix links to community discussions (#7576) (@leobalter)
-[`3101a40`](https://github.com/npm/cli/commit/3101a4045bd7030f232d6cb2ae61339214968321)[#7631](https://github.com/npm/cli/pull/7631) limit concurrent open files during 'npm cache verify' (#7631) (@oikumene)
56
+
-[`2273183`](https://github.com/npm/cli/commit/22731831e22011e32fa0ca12178e242c2ee2b33d)[#7595](https://github.com/npm/cli/pull/7595) outdated: fixed wanted range for alias with version range (#7595) (@milaninfy)
57
+
-[`15be6dd`](https://github.com/npm/cli/commit/15be6dd33bfab8bdfaf8c3dece435d7139c1bf6d)[#7574](https://github.com/npm/cli/pull/7574) don't try parsing workspaces if none exist (@wraithgar)
58
+
59
+
### Documentation
60
+
61
+
-[`ac937d4`](https://github.com/npm/cli/commit/ac937d4f29b27fb877f79f33034ee1144c7202c4)[#7616](https://github.com/npm/cli/pull/7616) install: add save-peer flag (#7616) (@drew4237)
62
+
-[`55639ef`](https://github.com/npm/cli/commit/55639efd2d3094ca0931ddf9276c93f6880cd6e6)[#7615](https://github.com/npm/cli/pull/7615) use git+https in package.com url examples (#7615) (@MikeMcC399)
63
+
-[`93883bb`](https://github.com/npm/cli/commit/93883bb6459208a916584cad8c6c72a315cf32af)[#7582](https://github.com/npm/cli/pull/7582) Improve manpage section for `package.json``funding` properties (#7582) (@kemitchell)
64
+
-[`92e71e6`](https://github.com/npm/cli/commit/92e71e6b0c7889e243e6b54ef8b4eb9656de95f8)[#7576](https://github.com/npm/cli/pull/7576) fix links to community discussions (#7576) (@leobalter)
0 commit comments