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

[Bug?]: plugin-version doesn't call postversion lifecycle script #6620

Open
1 task
danilvalov opened this issue Nov 28, 2024 · 0 comments
Open
1 task

[Bug?]: plugin-version doesn't call postversion lifecycle script #6620

danilvalov opened this issue Nov 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@danilvalov
Copy link

Self-service

  • I'd be willing to implement a fix

Describe the bug

I switched from Yarn v1 to v3. But the postinstall hook doesn't work in it.

To reproduce

Steps:

  1. Run yarn plugin import version to install the plugin
  2. Add postversion script to scripts section of your package.json (ex.: "postversion": "echo \"Test postversion hook\"")
  3. Run yarn version minor (or major, or patch)

Expected result:

  • The postversion script runs

Actual result:

  • Nothing happens

Environment

System:
  OS: macOS 14.7.1
  CPU: Apple M2 Pro
Binaries:
  Node: 18.20.2 - `~/.nvm/versions/node/v18.20.2/bin/node`
  Yarn: 3.6.4 - `~/.nvm/versions/node/v18.20.2/bin/yarn`
  npm: 10.5.0 - `~/.nvm/versions/node/v18.20.2/bin/npm`

Additional context

No response

@danilvalov danilvalov added the bug Something isn't working label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant