-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli-cache): Remove RW CLI cache on upgrade (#11135)
This change removes the redwood cli plugin cache in `.redwood/commandCache.json` on running `rw upgrade`. This prevents the redwood CLI from using outdated versions of CLI plugins, and is particularly important when they same alias. **Before** running `yarn rw sb` -> would use the outdated storybook-cli package, and error out. **After** with no commandCache, it'll create a new command cache, and attempt to install the new vite CLI
- Loading branch information
1 parent
62509c9
commit 38fe93f
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- fix(cli-cache): Remove RW CLI cache on upgrade (#11135) by @dac09 | ||
|
||
This change removes the redwood cli plugin cache in `.redwood/commandCache.json` on running `rw upgrade`. | ||
|
||
This prevents the redwood CLI from using outdated versions of CLI plugins, and is particularly important when they same alias. | ||
|
||
**Before** | ||
running `yarn rw sb` -> would use the outdated storybook-cli package, and error out. | ||
|
||
**After** | ||
with no commandCache, it'll create a new command cache, and attempt to install the new vite CLI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters