mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
Merge remote-tracking branch 'upstream/main' into watchable
This commit is contained in:
commit
3141dfdcf4
1 changed files with 3 additions and 1 deletions
|
|
@ -58,7 +58,9 @@ async function pack(argv) {
|
|||
stdio: ["inherit", "pipe", "inherit"],
|
||||
maxBuffer: 64 * 1024 * 1024,
|
||||
});
|
||||
const [info] = JSON.parse(output);
|
||||
// npm 10/11 print an array, npm 12 prints an object keyed by package name.
|
||||
const parsed = JSON.parse(output);
|
||||
const info = Array.isArray(parsed) ? parsed[0] : Object.values(parsed)[0];
|
||||
packed.push({ name: info.name, file: info.filename });
|
||||
console.error(`packed ${info.name}@${info.version} -> ${info.filename}`);
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue