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

Removed 'pre' scripts from package.json as yarn3 doesn't support them #4066

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

rohan-bes
Copy link
Collaborator

According to yarn 3 docs

In particular, we intentionally don't support arbitrary pre and post hooks for user-defined scripts (such as prestart). This behavior, inherited from npm, caused scripts to be implicit rather than explicit, obfuscating the execution flow. It also led to surprising executions with yarn serve also running yarn preserve.

@rohan-bes rohan-bes enabled auto-merge (squash) August 2, 2022 06:43
@rohan-bes rohan-bes merged commit 52ee3e8 into dev Aug 2, 2022
@rohan-bes rohan-bes deleted the yarn3-remove-prestart branch August 2, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants