Skip to content

Commit

Permalink
fix: return correct path
Browse files Browse the repository at this point in the history
Closes pnpm#5471
  • Loading branch information
juanrgm committed Oct 9, 2022
1 parent 84f4404 commit 3305bba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thick-dancers-guess.md
@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-publishing": patch
---

Fix the return path of `pnpm pack` (#5471)
2 changes: 1 addition & 1 deletion packages/plugin-commands-publishing/src/pack.ts
Expand Up @@ -116,7 +116,7 @@ export async function handler (
await _runScriptsIfPresent(['postpack'], entryManifest)
}
if (opts.dir !== dir) {
return path.join(dir, tarballName)
return path.join(destDir, tarballName)
}
return path.relative(opts.dir, path.join(dir, tarballName))
}
Expand Down

0 comments on commit 3305bba

Please sign in to comment.