Skip to content

Commit

Permalink
ci: 更新输出
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnAngela committed Nov 14, 2023
1 parent 1ed8987 commit d3f25b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/browserify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ const tempPath = await mkdtmp({
local: true,
});
const inputPath = path.join(tempPath, "input.js");
const [nomalOutput, jsonOutput] = await Promise.all([exec("npm ls"), exec("npm ls --json")]);
console.info("npm ls:", nomalOutput);
const jsonOutput = await exec("npm ls --json");
/**
* @type {{ [name: string]: { version: string } }}
*/
const localPackageVersions = JSON.parse(jsonOutput).dependencies;
console.info("npm ls:", ["", ...Object.entries(localPackageVersions).map(([name, { version }]) => `* ${name}@${version}`)].join("\n"));
const fileList = [];
for (const browserifyTarget of browserifyTargets) {
console.info("target:", browserifyTarget);
Expand Down

0 comments on commit d3f25b7

Please sign in to comment.