libnpmpack 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
 
3
3
  <a name="2.0.0"></a>
4
- # [2.0.0](https://github.com/npm/libnpmpublish/compare/v1.0.0...v2.0.0) (2020-03-27)
4
+ # [2.0.0](https://github.com/npm/libnpmpack/compare/v1.0.0...v2.0.0) (2020-03-27)
5
5
 
6
6
  ### Breaking Changes
7
7
 
package/index.js CHANGED
@@ -11,6 +11,10 @@ async function pack (spec = 'file:.', opts = {}) {
11
11
 
12
12
  const manifest = await pacote.manifest(spec, opts)
13
13
 
14
+ // Default to true if no log options passed, set to false if we're in silent
15
+ // mode
16
+ const banner = !opts.log || (opts.log.level !== 'silent')
17
+
14
18
  if (spec.type === 'directory') {
15
19
  // prepack
16
20
  await runScript({
@@ -18,7 +22,8 @@ async function pack (spec = 'file:.', opts = {}) {
18
22
  event: 'prepack',
19
23
  path: spec.fetchSpec,
20
24
  stdio: 'inherit',
21
- pkg: manifest
25
+ pkg: manifest,
26
+ banner
22
27
  })
23
28
  }
24
29
 
@@ -36,6 +41,7 @@ async function pack (spec = 'file:.', opts = {}) {
36
41
  path: spec.fetchSpec,
37
42
  stdio: 'inherit',
38
43
  pkg: manifest,
44
+ banner,
39
45
  env: {
40
46
  npm_package_from: tarball.from,
41
47
  npm_package_resolved: tarball.resolved,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmpack",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Programmatic API for the bits behind npm pack",
5
5
  "author": "npm Inc. <support@npmjs.com>",
6
6
  "contributors": [
@@ -23,9 +23,9 @@
23
23
  "check-coverage": true
24
24
  },
25
25
  "devDependencies": {
26
- "nock": "^12.0.2",
27
- "standard": "^14.3.1",
28
- "tap": "^14.10.6"
26
+ "nock": "^13.0.7",
27
+ "standard": "^16.0.3",
28
+ "tap": "^14.11.0"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",
@@ -34,9 +34,9 @@
34
34
  "bugs": "https://github.com/npm/libnpmpack/issues",
35
35
  "homepage": "https://npmjs.com/package/libnpmpack",
36
36
  "dependencies": {
37
- "@npmcli/run-script": "^1.3.0",
38
- "npm-package-arg": "^8.0.0",
39
- "pacote": "^11.1.4"
37
+ "@npmcli/run-script": "^1.8.3",
38
+ "npm-package-arg": "^8.1.0",
39
+ "pacote": "^11.2.6"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=10"