Skip to content

Commit

Permalink
feat(stat-bundle): show CLI to explode the bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jun 17, 2024
1 parent 0405202 commit 22b43da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/agoric-cli/src/lib/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ export const statBundle = async bundleFilename => {
console.table(byPackage);

console.log('total size:', totalSize);
console.log('\nTo explore the contents:\n');
console.log(
` DIR=$(mktemp -d); cat ${bundleFilename} | jq -r .endoZipBase64 | base64 -d | tar xC $DIR; open $DIR`,
);
};

/** @param {string} path */
Expand Down

0 comments on commit 22b43da

Please sign in to comment.