Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Task command delegating to `vp run <script>` silently loses task-level caching

Open
#2,238 0 comments 0 reactions 1 assignee View on GitHub

@wan9chi is already working on this.

Since Jul 25, 2026.

Assessment

This issue has not been assessed yet.

Description

bug
Describe the bug

A vite.config.ts task whose command is vp run <package.json script> behaves as a pass-through alias:

  • It drops the "cached-by-default" behavior
  • vp run -v says "Cache disabled in task configuration" (the script's uncached default wins)

=> The task executes on every run.

The identical underlying command inlined in the task, or dispatched via pnpm --filter in a workspace, caches normally.

Expected:

  • Either the config task caches its command like any other (preferred)
  • Or the aliasing is documented and warned about
Reproduction

see text

Steps to reproduce
package.json
{
    "name": "repro-package-json",
    "private": true,
    "scripts": {
        "gen": "node -e \"console.log('generated')\"" 
    }
}
vite.config.ts
 export default {
   run: {
     tasks: {
       "outer-alias": { command: "vp run gen" },          // never caches
       "outer-direct": { command: "node -e \"console.log('generated')\"" }, // caches
     },
   },
 };

When running:

  • outer-alias executed both runs
  • outer-direct got "cache hit, 50ms saved" on the second)
System Info
vp version 0.2.2
Used Package Manager

pnpm

Logs
-
Validations
Dominant language
Rust
Stars
5.8k
Forks
263
Avg merge
1d 4h
Merged PRs (30d)
148

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from voidzero-dev/vite-plus

All issues in voidzero-dev/vite-plus

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.