Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-02-19 22:36:49 +0300
committerGar <gar+gh@danger.computer>2021-02-19 22:36:49 +0300
commitd865b101f72142619531311645479f0596a68a1a (patch)
tree8ce0e23ecf0143c415f8043494f4e49dda4589a8 /node_modules/libnpmpack
parent8c36697dfffe8b5e853fe889c9ead5578100c413 (diff)
libnpmpack@2.0.1
Diffstat (limited to 'node_modules/libnpmpack')
-rw-r--r--node_modules/libnpmpack/CHANGELOG.md2
-rw-r--r--node_modules/libnpmpack/index.js8
-rw-r--r--node_modules/libnpmpack/package.json14
3 files changed, 15 insertions, 9 deletions
diff --git a/node_modules/libnpmpack/CHANGELOG.md b/node_modules/libnpmpack/CHANGELOG.md
index 2c078c63b..2310ac7f8 100644
--- a/node_modules/libnpmpack/CHANGELOG.md
+++ b/node_modules/libnpmpack/CHANGELOG.md
@@ -1,7 +1,7 @@
# Change Log
<a name="2.0.0"></a>
-# [2.0.0](https://github.com/npm/libnpmpublish/compare/v1.0.0...v2.0.0) (2020-03-27)
+# [2.0.0](https://github.com/npm/libnpmpack/compare/v1.0.0...v2.0.0) (2020-03-27)
### Breaking Changes
diff --git a/node_modules/libnpmpack/index.js b/node_modules/libnpmpack/index.js
index a756ebca0..779c4d96d 100644
--- a/node_modules/libnpmpack/index.js
+++ b/node_modules/libnpmpack/index.js
@@ -11,6 +11,10 @@ async function pack (spec = 'file:.', opts = {}) {
const manifest = await pacote.manifest(spec, opts)
+ // Default to true if no log options passed, set to false if we're in silent
+ // mode
+ const banner = !opts.log || (opts.log.level !== 'silent')
+
if (spec.type === 'directory') {
// prepack
await runScript({
@@ -18,7 +22,8 @@ async function pack (spec = 'file:.', opts = {}) {
event: 'prepack',
path: spec.fetchSpec,
stdio: 'inherit',
- pkg: manifest
+ pkg: manifest,
+ banner
})
}
@@ -36,6 +41,7 @@ async function pack (spec = 'file:.', opts = {}) {
path: spec.fetchSpec,
stdio: 'inherit',
pkg: manifest,
+ banner,
env: {
npm_package_from: tarball.from,
npm_package_resolved: tarball.resolved,
diff --git a/node_modules/libnpmpack/package.json b/node_modules/libnpmpack/package.json
index dc789edba..f3ec245d3 100644
--- a/node_modules/libnpmpack/package.json
+++ b/node_modules/libnpmpack/package.json
@@ -1,6 +1,6 @@
{
"name": "libnpmpack",
- "version": "2.0.0",
+ "version": "2.0.1",
"description": "Programmatic API for the bits behind npm pack",
"author": "npm Inc. <support@npmjs.com>",
"contributors": [
@@ -23,9 +23,9 @@
"check-coverage": true
},
"devDependencies": {
- "nock": "^12.0.2",
- "standard": "^14.3.1",
- "tap": "^14.10.6"
+ "nock": "^13.0.7",
+ "standard": "^16.0.3",
+ "tap": "^14.11.0"
},
"repository": {
"type": "git",
@@ -34,9 +34,9 @@
"bugs": "https://github.com/npm/libnpmpack/issues",
"homepage": "https://npmjs.com/package/libnpmpack",
"dependencies": {
- "@npmcli/run-script": "^1.3.0",
- "npm-package-arg": "^8.0.0",
- "pacote": "^11.1.4"
+ "@npmcli/run-script": "^1.8.3",
+ "npm-package-arg": "^8.1.0",
+ "pacote": "^11.2.6"
},
"engines": {
"node": ">=10"