Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 511 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 511 Bytes

@lerna/log-packed

Log the result of npm pack --json

Extracted from the npm source.

Usage

const execa = require("execa");
const { logPacked } = require("@lerna/log-packed");

execa("npm", ["pack", "--json"]).then(result => {
  const tarballs = JSON.parse(result.stdout);
  tarballs.forEach(logPacked);
});

Install lerna for access to the lerna CLI.