Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing pre/post hooks for pack (#4177) #4193

Merged
merged 2 commits into from Aug 18, 2017

Conversation

joaolucasl
Copy link
Contributor

@joaolucasl joaolucasl commented Aug 17, 2017

Summary
Yarn wouldn't run the prepack and postpack scripts, as it is expected when pack is ran (#4177).
This PR adds those missing calls and updates tests accordingly.

Test plan
Added tests.

@BYK BYK self-assigned this Aug 18, 2017
@BYK BYK merged commit 4d7043d into yarnpkg:master Aug 18, 2017
@BYK
Copy link
Member

BYK commented Aug 18, 2017

Thanks a lot!

@BYK BYK added this to Done in Yarn 1.0 Aug 18, 2017
@joaolucasl joaolucasl deleted the fix/pack-lifecycle branch August 18, 2017 11:36
@deecewan
Copy link

Nice! Man, I should really get around to implementing my RFC relating to the hooks.

yhatt added a commit to yhatt/markdown-it-incremental-dom that referenced this pull request Dec 30, 2017
`yarn publish` is already supported prepack script in yarn 1.0.0.
(and prepublish scripts is running before packing in yarn 1.2.0)

See:
yarnpkg/yarn#4193
yarnpkg/yarn#4553
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants