Skip to content

Commit 98b807b

Browse files
fix: publishConfig.directory (#499)
1 parent 9b95d4f commit 98b807b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cli/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,10 @@ runMain(main)
688688
type PackMethod = "npm" | "pnpm" | "yarn" | "bun";
689689

690690
async function resolveTarball(pm: PackMethod, p: string, pJson: PackageJson) {
691-
let cmd = `${pm} pack`;
691+
let cmd = `${pm} pack --pack-destination ${p}`;
692692
let filename = `${pJson.name!.replace("/", "-")}-${pJson.version}.tgz`;
693693
if (pm === "yarn") {
694-
cmd += ` --filename ${filename}`;
694+
cmd = `yarn pack --filename ${filename}`;
695695
} else if (pm === "bun") {
696696
cmd = `bun pm pack --quiet --destination ${p}`;
697697
}

0 commit comments

Comments
 (0)