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

Options to run upgrade one by one and run a command after to check if everything is ok #78

Open
3 tasks done
jordan-boyer opened this issue Aug 31, 2023 · 3 comments
Open
3 tasks done
Labels
enhancement New feature or request

Comments

@jordan-boyer
Copy link

Clear and concise description of the problem

First of all thx you for the amazing tools =)

I would like to have an option to upgrade dependencies one by one and run a command after it (like npx taze --oneByOne --command npm run test).

We could also provide a command for committing just after upgrade with a custom message (like npx taze --oneByOne --commit 'chore: upgrade %n %cv to %v' where %n is the package name %cv is the current version and %v is the updated version)

I think the option --command can be globaly available (chainable with other options) since you might want to run a command juste after and upgrade and roll back if this command fail.

Option --commit should only be available with the --oneByOne option.

(feel free to change options name and send me feedback on it)

Suggested solution

If you like the idea I can try to implement it =)

Alternative

No response

Additional context

No response

Validations

@jordan-boyer jordan-boyer added the enhancement New feature or request label Aug 31, 2023
@antfu
Copy link
Member

antfu commented Aug 31, 2023

You can already ad -I for interactive select, isn't that enough for your case?

@cbbfcd
Copy link

cbbfcd commented Dec 4, 2023

A great tool, thanks to the author.
It looks like a similar scenario to the one I'm facing, let's say I have a monorepo project with more than 20 sub-projects, and if I change them one by one via -I, my zsh just won't work properly~!
It would be nice to have a command or configuration to specify that only certain dependencies under a packages/foo should be updated, so that incremental upgrades can be done to ensure business stability.

@jordan-boyer
Copy link
Author

I'm so sorry for the delay.

-I seems to be a good start but it does not really work for my use case.
Like I said before, I want to upgrade one dependency and then directly run a command after it and if the command pass (e.g: exit code 0) then i want to proceed to the next upgrade.

I don't want to do this manually because on large legacy project it can be tedious to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants