Skip to content

fix(cache): forward cache command to local CLI and update cache path - #427

Merged
fengmk2 merged 1 commit into
mainfrom
fix-cache-command
Jan 14, 2026
Merged

fengmk2 merged 1 commit into
mainfrom
fix-cache-command

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jan 14, 2026

Copy link
Copy Markdown
Member
  • Add 'cache' to LOCAL_CLI_COMMANDS in global CLI to forward to local CLI
  • Change task cache path from .vite-plus to node_modules/.vite/task-cache
  • Update cache-clean snap test to use vite fmt instead of echo hello

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

fengmk2 commented Jan 14, 2026

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2
fengmk2 marked this pull request as ready for review January 14, 2026 11:52
Copilot AI review requested due to automatic review settings January 14, 2026 11:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the cache command forwarding in the global CLI and updates the task cache storage path. The cache command can now be invoked from the global CLI (forwarding to local CLI), and the cache is stored in a more standard location within node_modules/.vite/task-cache instead of .vite-plus.

Changes:

  • Added 'cache' to the list of commands forwarded from global to local CLI
  • Updated task cache path from .vite-plus to node_modules/.vite/task-cache
  • Updated cache-clean snap test to use vite fmt instead of echo hello to properly test caching behavior

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/global/src/index.ts Added 'cache' to LOCAL_CLI_COMMANDS array to enable cache command forwarding
packages/cli/snap-tests/cache-clean/src/index.ts Added source file for cache-clean snap test
packages/cli/snap-tests/cache-clean/snap.txt Updated expected output to reflect vite fmt command instead of echo hello
packages/cli/snap-tests/cache-clean/package.json Changed hello script from echo hello to vite fmt
packages/cli/binding/src/cli.rs Updated cache path from .vite-plus to node_modules/.vite/task-cache

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengmk2 fengmk2 self-assigned this Jan 14, 2026
- Add 'cache' to LOCAL_CLI_COMMANDS in global CLI to forward to local CLI
- Change task cache path from `.vite-plus` to `node_modules/.vite/task-cache`
- Update cache-clean snap test to use `vite fmt` instead of `echo hello`

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

fengmk2 commented Jan 14, 2026

Copy link
Copy Markdown
Member Author

Merge activity

  • Jan 14, 2:08 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jan 14, 2:12 PM UTC: @fengmk2 merged this pull request with Graphite.

@fengmk2
fengmk2 merged commit bc12aef into main Jan 14, 2026
13 of 14 checks passed
@fengmk2
fengmk2 deleted the fix-cache-command branch January 14, 2026 14:12
@fengmk2

fengmk2 commented Jan 14, 2026

Copy link
Copy Markdown
Member Author

Why can it automatically merge even if the CI failed?😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants