We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
publishConfig.directory
1 parent 9b95d4f commit 98b807bCopy full SHA for 98b807b
1 file changed
packages/cli/index.ts
@@ -688,10 +688,10 @@ runMain(main)
688
type PackMethod = "npm" | "pnpm" | "yarn" | "bun";
689
690
async function resolveTarball(pm: PackMethod, p: string, pJson: PackageJson) {
691
- let cmd = `${pm} pack`;
+ let cmd = `${pm} pack --pack-destination ${p}`;
692
let filename = `${pJson.name!.replace("/", "-")}-${pJson.version}.tgz`;
693
if (pm === "yarn") {
694
- cmd += ` --filename ${filename}`;
+ cmd = `yarn pack --filename ${filename}`;
695
} else if (pm === "bun") {
696
cmd = `bun pm pack --quiet --destination ${p}`;
697
}
0 commit comments