forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(publish): Run pre and postpack lifecycle scripts on publish (yarn…
…pkg#5712) **Summary** npm runs the pre and post pack scripts on publish, but yarn was not. Added these scripts. fixes yarnpkg#5707 **Test plan** Added a test that regex's the output to look for scripts being run. If you look at the test, the regex is kinda weird, but I did it that way to make sure the log statements were in the correct order in the output.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "lifecycle-scripts", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "echo running the prepublish hook", | ||
"prepublishOnly": "echo running the prepublishOnly hook", | ||
"publish": "echo running the publish hook", | ||
"postpublish": "echo running the postpublish hook", | ||
"prepare": "echo running the prepare hook", | ||
"prepack": "echo running the prepack hook", | ||
"postpack": "echo running the postpack hook" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters