-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
fixed-in-modernThis issue has been fixed / implemented in Yarn 2+.This issue has been fixed / implemented in Yarn 2+.
Description
Bug description
postpack is not called after yarn pack has completed. Also the success message about creating the tarball during yarn pack no longer shows up. This only happens on node 12.16.*
What is the current behavior?
When executing the command yarn pack, yarn invokes the user defined script prepack before packing but does not invoke postpack.
What is the expected behavior?
When executing the command yarn pack, yarn should invoke the user defined script prepack before and postpack after the packaging.
Steps to Reproduce
- Create a blank project (
yarn init) - Add the following to
package.json
"scripts": {
"prepack": "echo \"Hello\"",
"postpack": "echo \"World\""
}- Run
yarn pack
Expected Output:
yarn pack v1.22.0
$ echo "Hello"
Hello
$ echo "World"
World
success Wrote tarball to "/private/tmp/yarn-test/yarn-test-v1.0.0.tgz".
✨ Done in 0.06s.
Actual Output:
yarn pack v1.22.0
$ echo "Hello"
Hello
Environment
- Node Version:
12.16.0&12.16.1 - Yarn v1 Version:
1.22.0 - OS and version: OSX 10.15.3
KeithYeh, niksauer, banderror, AArnott, hjdivad and 2 more
Metadata
Metadata
Assignees
Labels
fixed-in-modernThis issue has been fixed / implemented in Yarn 2+.This issue has been fixed / implemented in Yarn 2+.