Skip to content

Commit

Permalink
fix: don't run postpublish of git-hosted dependency
Browse files Browse the repository at this point in the history
close #6846
  • Loading branch information
zkochan committed Jul 22, 2023
1 parent a13a0e8 commit 8cb225e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/small-windows-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pnpm/prepare-package": patch
"pnpm": patch
---

The "postpublish" script of a git-hosted dependency is not executed, while building the dependency [#6822](https://github.com/pnpm/pnpm/issues/6846).
1 change: 0 additions & 1 deletion exec/prepare-package/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const PREPUBLISH_SCRIPTS = [
'prepublishOnly',
'prepack',
'publish',
'postpublish',
]

export interface PreparePackageOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "has-prepublish-script",
"version": "1.0.0",
"scripts": {
"prepublish": "node -e \"process.stdout.write('prepublish')\" | json-append output.json"
"prepublish": "node -e \"process.stdout.write('prepublish')\" | json-append output.json",
"postpublish": "node -e \"process.stdout.write('postpublish')\" | json-append output.json"
},
"devDependencies": {
"json-append": "1.1.1"
Expand Down

0 comments on commit 8cb225e

Please sign in to comment.