astro unadd <integration> #522
Replies: 7 comments 3 replies
-
I want to propose the Removing a dependency will take more work than adding an integration (from the development point of view). |
Beta Was this translation helpful? Give feedback.
-
I would also like this. This feature would make life so easy. I think it should either ask to turn of the server or just turn it of. If you are using an integration that injects scripts then you would have to turn off the server and fix the errors in the code anyway. |
Beta Was this translation helpful? Give feedback.
-
4.0 please? |
Beta Was this translation helpful? Give feedback.
-
I don't know that we'll be able to prioritize this over other features since removing an integration is not very common, but contributions are welcome! |
Beta Was this translation helpful? Give feedback.
-
If this were to be added:
Personally I would go for the third option with interactive removal. |
Beta Was this translation helpful? Give feedback.
-
what about |
Beta Was this translation helpful? Give feedback.
-
So, to date, there is no way to remove something installed with astro add?
I ask because I really want to find the right way to do it and maintain my project well. |
Beta Was this translation helpful? Give feedback.
-
Summary
Unadd a previous
astro add <integration>
with a simpleunadd
command.Should
Remove added files and changes to
package.json
,pacakge-lock.json
,astro.config.mjs
, and other affected areas of a project.Instead of
Going through your project and manually uninstalling and removing the additions.
Background & Motivation
After making frequent integration changes, I would love a seamless CLI command to do the unadd work for me just as the
add
command does so flawlessly.It should be just as simple to unadd changes as it is to add them.
Goals
astro add <integration>
.Example
After running
astro add <integration>
and approving the project changes, I would want to be able to run the commandastro unadd <integration>
at a later time that removes all of the changes that were made to my project (given I no longer wanted the integration for my project).Beta Was this translation helpful? Give feedback.
All reactions