NOTE: It is possible to return how pre/post scripts worked by setting the enable-pre-post-scripts setting to true (since v6.1.0)
When running pnpm run foo, don't run the prefoo script and the postfoo script.
Yarn 2 already deprecated the pre/post scripts:
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.
https://yarnpkg.com/advanced/lifecycle-scripts
NOTE: It is possible to return how pre/post scripts worked by setting the
enable-pre-post-scriptssetting totrue(since v6.1.0)When running
pnpm run foo, don't run theprefooscript and thepostfooscript.Yarn 2 already deprecated the pre/post scripts:
https://yarnpkg.com/advanced/lifecycle-scripts