voidzero-dev / voidzero-dev/vite-task

dependsOn a persistent task

Open
#416 0 comments 0 reactions 1 assignee View on GitHub

@wan9chi is already working on this.

Since Aug 3, 2026.

Dominant language
Rust
Stars
466
Forks
42
Avg merge
1d 15h
Merged PRs (30d)
19

Description

I want to run @workspace/i18n#dev when I run vp dev apps/web
is it possible to dependsOn a persistent task ?

vite.config.ts
  run: {
    cache: true,
    tasks: {
      "web:dev": {
        command: "vp dev apps/web", // The build command for your web app
        dependsOn: ["@workspace/i18n#dev"], // Depends on the i18n package's build --watch
        persistent: true,
      },
    },
  },
packages/i18n/package.json
  "scripts": {
    "build": "vp build",
    "check": "vp check",
    "dev": "vp build --watch",
    "prepublishOnly": "vp run build",
    "test": "vp test"
  },

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.