Skip to content

Commit f403d3e

Browse files
committed
init
1 parent 1c7fc39 commit f403d3e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/cli/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,15 @@ async function resolveTarball(pm: PackMethod, p: string, pJson: PackageJson) {
687687
if (pm !== "yarn" && pm !== "bun") {
688688
filename = lines[lines.length - 1].trim();
689689
}
690+
if (pm === "bun") {
691+
const tgzFiles = fsSync
692+
.readdirSync(p)
693+
.filter((file) => file.endsWith(".tgz"));
694+
console.warn(`[bun pack] stdout:\n${stdout}`);
695+
console.warn(
696+
`[bun pack] expected filename: ${filename}; tgz files: ${tgzFiles.join(", ") || "(none)"}`,
697+
);
698+
}
690699

691700
const shasum = createHash("sha1")
692701
.update(await fs.readFile(path.resolve(p, filename)))

0 commit comments

Comments
 (0)