mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-30 04:52:04 -04:00
fix: don't run postpublish of git-hosted dependency (#6848)
close #6846
This commit is contained in:
6
.changeset/small-windows-brush.md
Normal file
6
.changeset/small-windows-brush.md
Normal file
@@ -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).
|
||||
@@ -12,7 +12,6 @@ const PREPUBLISH_SCRIPTS = [
|
||||
'prepublishOnly',
|
||||
'prepack',
|
||||
'publish',
|
||||
'postpublish',
|
||||
]
|
||||
|
||||
export interface PreparePackageOptions {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user