Closed (fixed)
Project:
radix
Version:
6.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 May 2024 at 17:33 UTC
Updated:
18 May 2024 at 08:44 UTC
Jump to comment: Most recent
If a user (hypothetically, me) runs drupal-radix-cli add and accidentally chooses a component that has already been created (selecting, say, nav instead of navbar), the preexisting component is overwritten without warning, potentially erasing uncommitted changes.
It would be great if instead you got a prompt "COMPONENT_NAME already exists. Do you want to overwrite it? y/N"
Comments
Comment #2
doxigo commentedGood idea, will do so. but the issue should probably go to Github rather than the Drupal theme. but thanks
Comment #3
doxigo commentedJust released the 1.0.7 tag, thanks for the issue, please do run
npm update drupal-radix-clito get the latest version and test it out and let me know if it works as expected or not.