-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #36153 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
- Loading branch information
1 parent
4e3883e
commit c23ee37
Showing
111 changed files
with
5,022 additions
and
3,247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -733,3 +733,4 @@ Jan Tojnar <[email protected]> | |
Jason Attwood <[email protected]> | ||
Vlad GURDIGA <[email protected]> | ||
Sébastien Puech <[email protected]> | ||
Jannis Hell <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
## 7.0.12 (2020-11-17) | ||
|
||
### BUG FIXES | ||
|
||
* [`7b89576bd`](https://github.com/npm/cli/commit/7b89576bd1fa557a312a841afa66b895558d1b12) | ||
[#2174](https://github.com/npm/cli/issues/2174) | ||
fix running empty scripts with `npm run-script` | ||
([@nlf](https://github.com/nlf)) | ||
* [`bc9afb195`](https://github.com/npm/cli/commit/bc9afb195f5aad7c06bc96049c0f00dc8e752dee) | ||
[#2002](https://github.com/npm/cli/issues/2002) | ||
[#2184](https://github.com/npm/cli/issues/2184) | ||
Preserve builtin conf when installing npm globally | ||
([@isaacs](https://github.com/isaacs)) | ||
|
||
### DEPENDENCIES | ||
|
||
* [`b74c05d88`](https://github.com/npm/cli/commit/b74c05d88dc48fabef031ea66ffaa4e548845655) | ||
`@npmcli/[email protected]` | ||
* fix windows command-line argument escaping | ||
|
||
### DOCUMENTATION | ||
|
||
* [`4e522fdc9`](https://github.com/npm/cli/commit/4e522fdc917bc85af2ca8ff7669a0178e2f35123) | ||
[#2179](https://github.com/npm/cli/issues/2179) | ||
remove mention to --parseable option from `npm audit` docs | ||
([@Primajin](https://github.com/Primajin)) | ||
|
||
## 7.0.11 (2020-11-13) | ||
|
||
### DEPENDENCIES | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,7 +156,7 @@ <h3 id="description">Description</h3> | |
limit the results to only the paths to the packages named. Note that | ||
nested packages will <em>also</em> show the paths to the specified packages. | ||
For example, running <code>npm ls promzard</code> in npm’s source tree will show:</p> | ||
<pre lang="bash"><code> [email protected].11 /path/to/npm | ||
<pre lang="bash"><code> [email protected].12 /path/to/npm | ||
└─┬ [email protected] | ||
└── [email protected] | ||
</code></pre> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const reifyOutput = require('./reify-output.js') | ||
const npm = require('../npm.js') | ||
const ini = require('ini') | ||
const {writeFile} = require('fs').promises | ||
const {resolve} = require('path') | ||
|
||
const reifyFinish = async arb => { | ||
await saveBuiltinConfig(arb) | ||
reifyOutput(arb) | ||
} | ||
|
||
const saveBuiltinConfig = async arb => { | ||
const { options: { global }, actualTree } = arb | ||
if (!global) | ||
return | ||
|
||
// if we are using a builtin config, and just installed npm as | ||
// a top-level global package, we have to preserve that config. | ||
const npmNode = actualTree.inventory.get('node_modules/npm') | ||
if (!npmNode) | ||
return | ||
|
||
const builtinConf = npm.config.data.get('builtin') | ||
if (builtinConf.loadError) | ||
return | ||
|
||
const content = ini.stringify(builtinConf.raw).trim() + '\n' | ||
await writeFile(resolve(npmNode.path, 'npmrc'), content) | ||
} | ||
|
||
module.exports = reifyFinish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.