pejay-ui 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,6 +46,14 @@ import { Input, Checkbox, AmountInput } from "@/pejay-ui/components";
|
|
|
46
46
|
**Component-Specific Documentation (READMEs):**
|
|
47
47
|
Certain components (like `toast`) ship with localized `README.md` guides. When you install them, the CLI automatically copies their detailed usage documentation directly into the component's folder (e.g., `src/pejay-ui/components/toast/README.md`) so you have helper docs right next to the code.
|
|
48
48
|
|
|
49
|
+
**Overwrite Protection:**
|
|
50
|
+
To prevent accidentally overwriting any custom modifications you have made to your components, the CLI checks if the component is already tracked in `pejay-ui.json` or if its files already exist in your workspace. It will ask for confirmation before overwriting:
|
|
51
|
+
```
|
|
52
|
+
? Component '<name>' is already present in your project. Overwriting it will discard any local changes you have made. Do you want to proceed and overwrite it? (y/N)
|
|
53
|
+
```
|
|
54
|
+
- Choosing **No** safely skips the installation, preserving your local changes.
|
|
55
|
+
- Choosing **Yes** overwrites the files with a fresh copy of the component template.
|
|
56
|
+
|
|
49
57
|
### 3. Remove Component
|
|
50
58
|
```bash
|
|
51
59
|
npx pejay-ui remove <component-name>
|