--overwrite does not update existing components when using pnpm dlx shadcn@latest add ... #11410
|
Hi, I’m having an issue updating existing shadcn components with pnpm. Command Output What I expected |
Replies: 1 comment
|
This is working as intended — the CLI message is just worded in a confusing way. There are two separate skip paths in
The summary line lumps both cases together — You can verify this by making a small edit to e.g. If the intent was to force a clean re-install regardless, delete the component files first and run |
This is working as intended — the CLI message is just worded in a confusing way.
There are two separate skip paths in
update-files.ts, and--overwriteonly affects the second one:Content is identical → the file is skipped unconditionally, before
--overwriteis even consulted:Content differs → only here does the flag matter: without
--overwriteyou get a …