Skip to content

Commit c79b052

Browse files
authored
Merge branch 'release-next' into lk/arb-bin
2 parents 848a755 + 1b4385f commit c79b052

75 files changed

Lines changed: 566 additions & 1552 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AUTHORS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,3 +821,7 @@ linkgoron <Linkgoron@users.noreply.github.com>
821821
Quentin Barbe <forty@everteam.org>
822822
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
823823
Delapouite <delapouite@gmail.com>
824+
F. Hinkelmann <franziska.hinkelmann@gmail.com>
825+
Tierney Cyren <hello@bnb.im>
826+
Mohamed Akram <mohd-akram@users.noreply.github.com>
827+
Wassim Chegham <1699357+manekinekko@users.noreply.github.com>

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
1+
## v8.5.1 (2022-02-17)
2+
3+
### Dependencies
4+
5+
* [`54cda9697`](https://github.com/npm/cli/commit/54cda9697b776fae807966097315c7b836623743)
6+
[#4410](https://github.com/npm/cli/pull/4410)
7+
fix(arborist): do not audit in offline mode
8+
([@mohd-akram](https://github.com/mohd-akram))
9+
* [`fb13bdaf1`](https://github.com/npm/cli/commit/fb13bdaf12dde3ef5685a77354e51a9cfa579879)
10+
[#4403](https://github.com/npm/cli/pull/4403)
11+
deps: `@npmcli/ci-detect@2.0.0`
12+
* [`702801002`](https://github.com/npm/cli/commit/702801002e99bf02dd4d6d1e447a5ab332d56c79)
13+
[#4415](https://github.com/npm/cli/pull/4415)
14+
deps: `make-fetch-happen@10.0.3`
15+
* [`88bab3540`](https://github.com/npm/cli/commit/88bab354097023c96c49e78d7ee54159f495bf73)
16+
[#4416](https://github.com/npm/cli/pull/4416)
17+
deps: `gauge@4.0.1`
18+
19+
### Documentation
20+
21+
* [`20378c67c`](https://github.com/npm/cli/commit/20378c67cd533db514dd2aec7828c6d119e9d6c7)
22+
[#4423](https://github.com/npm/cli/pull/4423)
23+
docs: update documentation for ping
24+
([@fhinkel](https://github.com/fhinkel))
25+
* [`408d2fc15`](https://github.com/npm/cli/commit/408d2fc150185ef66125f7d6bdb1c25edb71bba3)
26+
[#4426](https://github.com/npm/cli/pull/4426)
27+
docs: update workspaces guide for consistency
28+
([@bnb](https://github.com/bnb))
29+
* [`9275856eb`](https://github.com/npm/cli/commit/9275856eb75e7c394a3c7617c2b495aba35ee2de)
30+
[#4424](https://github.com/npm/cli/pull/4424)
31+
docs: update usage example for npm pkg
32+
([@manekinekko](https://github.com/manekinekko))
33+
* [`20c83fae7`](https://github.com/npm/cli/commit/20c83fae76ff4a051e4f6542a328f1c00cf071bb)
34+
[#4428](https://github.com/npm/cli/pull/4428)
35+
docs: update docs for npm install <folder>
36+
([@manekinekko](https://github.com/manekinekko))
37+
138
## v8.5.0 (2022-02-10)
239

340
### Features

docs/content/commands/npm-init.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ strictly additive, so it will keep any fields and values that were already
3838
set. You can also use `-y`/`--yes` to skip the questionnaire altogether. If
3939
you pass `--scope`, it will create a scoped package.
4040

41+
*Note:* if a user already has the `create-<initializer>` package
42+
globally installed, that will be what `npm init` uses. If you want npm
43+
to use the latest version, or another specific version you must specify
44+
it:
45+
46+
* `npm init foo@latest` # fetches and runs the latest `create-foo` from
47+
the registry
48+
* `npm init foo@1.2.3` # runs `create-foo@1.2.3` specifically
49+
4150
#### Forwarding additional options
4251

4352
Any additional options will be passed directly to the command, so `npm init

docs/content/commands/npm-install.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,20 @@ into a tarball (b).
7878

7979
* `npm install <folder>`:
8080

81-
Install the package in the directory as a symlink in the current
82-
project. Its dependencies will be installed before it's linked. If
83-
`<folder>` sits inside the root of your project, its dependencies may
81+
If `<folder>` sits inside the root of your project, its dependencies will be installed and may
8482
be hoisted to the top-level `node_modules` as they would for other
85-
types of dependencies.
83+
types of dependencies. If `<folder>` sits outside the root of your project,
84+
*npm will not install the package dependencies* in the directory `<folder>`,
85+
but it will create a symlink to `<folder>`.
86+
87+
> NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use [`npm pack`](/commands/npm-pack) while in the `<folder>` directory, and then install the resulting tarball instead of the `<folder>` using `npm install <tarball file>`
88+
89+
Example:
90+
91+
```bash
92+
npm install ../../other-package
93+
npm install ./sub-package
94+
```
8695

8796
* `npm install <tarball file>`:
8897

docs/content/using-npm/scripts.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,11 @@ file.
344344
preinstall or install script. If you are doing this, please consider if
345345
there is another option. The only valid use of `install` or `preinstall`
346346
scripts is for compilation which must be done on the target architecture.
347+
* Scripts are run from the root of the package folder, regardless of what the
348+
current working directory is when `npm` is invoked. If you want your
349+
script to use different behavior based on what subdirectory you're in, you
350+
can use the `INIT_CWD` environment variable, which holds the full path you
351+
were in when you ran `npm run`.
347352

348353
### See Also
349354

node_modules/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ readme*
6969
/acorn-walk
7070
/ajv
7171
/ansi-colors
72+
/ansi-regex
7273
/anymatch
7374
/append-transform
7475
/arg
@@ -379,6 +380,7 @@ readme*
379380
/state-toggle
380381
/string.prototype.trimend
381382
/string.prototype.trimstart
383+
/strip-ansi
382384
/strip-json-comments
383385
/style-to-object
384386
/symbol-tree

node_modules/cli-columns/node_modules/is-fullwidth-code-point/index.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

node_modules/cli-columns/node_modules/is-fullwidth-code-point/package.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

node_modules/cli-columns/node_modules/string-width/index.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

node_modules/cli-columns/node_modules/string-width/package.json

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)