@lerna/log-packed
Advanced tools
Comparing version 3.0.0 to 3.0.4
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="3.0.4"></a> | ||
## [3.0.4](https://github.com/lerna/lerna/compare/v3.0.3...v3.0.4) (2018-08-14) | ||
### Bug Fixes | ||
* **publish:** Only pass `--json` to `npm pack` when npm >= 5.10.0 ([71babce](https://github.com/lerna/lerna/commit/71babce)), closes [#1558](https://github.com/lerna/lerna/issues/1558) | ||
<a name="3.0.0"></a> | ||
@@ -8,0 +20,0 @@ # [3.0.0](https://github.com/lerna/lerna/compare/v3.0.0-rc.0...v3.0.0) (2018-08-10) |
@@ -13,5 +13,5 @@ "use strict"; | ||
log.notice("", `${hasUnicode ? "📦 " : "package:"} ${tarball.name}@${tarball.version}`); | ||
log.notice("=== Tarball Contents ==="); | ||
if (tarball.files.length) { | ||
if (tarball.files && tarball.files.length) { | ||
log.notice("=== Tarball Contents ==="); | ||
log.notice( | ||
@@ -35,3 +35,3 @@ "", | ||
if (tarball.bundled.length) { | ||
if (tarball.bundled && tarball.bundled.length) { | ||
log.notice("=== Bundled Dependencies ==="); | ||
@@ -49,19 +49,22 @@ tarball.bundled.forEach(name => log.notice("", name)); | ||
tarball.filename && { name: "filename:", value: tarball.filename }, | ||
{ name: "package size:", value: byteSize(tarball.size) }, | ||
{ name: "unpacked size:", value: byteSize(tarball.unpackedSize) }, | ||
{ name: "shasum:", value: tarball.shasum }, | ||
{ name: "integrity:", value: elideIntegrity(tarball) }, | ||
tarball.bundled.length && { | ||
name: "bundled deps:", | ||
value: tarball.bundled.length, | ||
}, | ||
tarball.bundled.length && { | ||
name: "bundled files:", | ||
value: tarball.entryCount - tarball.files.length, | ||
}, | ||
tarball.bundled.length && { | ||
name: "own files:", | ||
value: tarball.files.length, | ||
}, | ||
{ name: "total files:", value: tarball.entryCount }, | ||
tarball.size && { name: "package size:", value: byteSize(tarball.size) }, | ||
tarball.unpackedSize && { name: "unpacked size:", value: byteSize(tarball.unpackedSize) }, | ||
tarball.shasum && { name: "shasum:", value: tarball.shasum }, | ||
tarball.integrity && { name: "integrity:", value: elideIntegrity(tarball.integrity) }, | ||
tarball.bundled && | ||
tarball.bundled.length && { | ||
name: "bundled deps:", | ||
value: tarball.bundled.length, | ||
}, | ||
tarball.bundled && | ||
tarball.bundled.length && { | ||
name: "bundled files:", | ||
value: tarball.entryCount - tarball.files.length, | ||
}, | ||
tarball.bundled && | ||
tarball.bundled.length && { | ||
name: "own files:", | ||
value: tarball.files.length, | ||
}, | ||
tarball.entryCount && { name: "total files:", value: tarball.entryCount }, | ||
].filter(x => x), | ||
@@ -79,6 +82,6 @@ { | ||
function elideIntegrity(tarball) { | ||
const str = tarball.integrity.toString(); | ||
function elideIntegrity(integrity) { | ||
const str = integrity.toString(); | ||
return `${str.substr(0, 20)}[...]${str.substr(80)}`; | ||
} |
{ | ||
"name": "@lerna/log-packed", | ||
"version": "3.0.0", | ||
"version": "3.0.4", | ||
"description": "Log the result of npm pack --json", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "0c40a17a7cd4e9acd8e7ec33ffacd1c1acef5dc6" | ||
"gitHead": "eea9c5f5cbb3c831350af080b8b71b4fad8df91f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5520
74