@lerna/log-packed
Advanced tools
Comparing version 3.16.0 to 4.0.0
@@ -6,2 +6,29 @@ # Change Log | ||
# [4.0.0](https://github.com/lerna/lerna/compare/v3.22.1...v4.0.0) (2021-02-10) | ||
### Features | ||
* Consume named exports of sibling modules ([63499e3](https://github.com/lerna/lerna/commit/63499e33652bc78fe23751875d74017e2f16a689)) | ||
* Drop support for Node v6.x & v8.x ([ff4bb4d](https://github.com/lerna/lerna/commit/ff4bb4da215555e3bb136f5af09b5cbc631e57bb)) | ||
* Expose named export ([c1303f1](https://github.com/lerna/lerna/commit/c1303f13adc4cf15f96ff25889b52149f8224c0e)) | ||
* Remove default export ([e2f1ec3](https://github.com/lerna/lerna/commit/e2f1ec3dd049d2a89880029908a2aa7c66f15082)) | ||
* **deps:** byte-size@^7.0.0 ([a1b2555](https://github.com/lerna/lerna/commit/a1b255504b52d83455de7bed32bf5e4d63cc7538)) | ||
### BREAKING CHANGES | ||
* The default export has been removed, please use a named export instead. | ||
* Node v6.x & v8.x are no longer supported. Please upgrade to the latest LTS release. | ||
Here's the gnarly one-liner I used to make these changes: | ||
``` | ||
npx lerna exec --concurrency 1 --stream -- 'json -I -f package.json -e '"'"'this.engines=this.engines||{};this.engines.node=">= 10.18.0"'"'" | ||
``` | ||
(requires `npm i -g json` beforehand) | ||
# [3.16.0](https://github.com/lerna/lerna/compare/v3.15.0...v3.16.0) (2019-07-18) | ||
@@ -8,0 +35,0 @@ |
@@ -8,5 +8,5 @@ "use strict"; | ||
module.exports = logContents; | ||
module.exports.logPacked = logPacked; | ||
function logContents(tarball) { | ||
function logPacked(tarball) { | ||
log.notice(""); | ||
@@ -20,3 +20,3 @@ log.notice("", `${hasUnicode ? "📦 " : "package:"} ${tarball.name}@${tarball.version}`); | ||
columnify( | ||
tarball.files.map(f => { | ||
tarball.files.map((f) => { | ||
const bytes = byteSize(f.size); | ||
@@ -38,3 +38,3 @@ return { | ||
log.notice("=== Bundled Dependencies ==="); | ||
tarball.bundled.forEach(name => log.notice("", name)); | ||
tarball.bundled.forEach((name) => log.notice("", name)); | ||
} | ||
@@ -70,3 +70,3 @@ | ||
tarball.entryCount && { name: "total files:", value: tarball.entryCount }, | ||
].filter(x => x), | ||
].filter((x) => x), | ||
{ | ||
@@ -73,0 +73,0 @@ include: ["name", "value"], |
{ | ||
"name": "@lerna/log-packed", | ||
"version": "3.16.0", | ||
"version": "4.0.0", | ||
"description": "Log the result of npm pack --json", | ||
@@ -19,3 +19,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">= 6.9.0" | ||
"node": ">= 10.18.0" | ||
}, | ||
@@ -34,3 +34,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"byte-size": "^5.0.1", | ||
"byte-size": "^7.0.0", | ||
"columnify": "^1.5.4", | ||
@@ -40,3 +40,3 @@ "has-unicode": "^2.0.1", | ||
}, | ||
"gitHead": "8ca18bedecf4f141c6242a099086e84b2ced72de" | ||
"gitHead": "4582c476e07dddddd6b2e3ab6e7f52c1f9eed59a" | ||
} |
@@ -11,3 +11,3 @@ # `@lerna/log-packed` | ||
const execa = require("execa"); | ||
const logPacked = require("@lerna/log-packed"); | ||
const { logPacked } = require("@lerna/log-packed"); | ||
@@ -14,0 +14,0 @@ execa("npm", ["pack", "--json"]).then(result => { |
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
7783
236176
+ Addedbyte-size@7.0.1(transitive)
- Removedbyte-size@5.0.1(transitive)
Updatedbyte-size@^7.0.0