Skip to content
Discussion options

You must be logged in to vote

On 1.0.0 you can keep vp run from executing the app configs by making their run field statically readable: the default export is a defineConfig(...) call from vite-plus, run is a plain literal after the last spread, and the app's build depends on the library build.

import { defineConfig } from 'vite-plus';
import { createAppConfig } from '@repro/helper';

export default defineConfig({
  ...createAppConfig(),
  run: {
    tasks: {
      build: {
        command: 'vp build',
        dependsOn: ['@repro/helper#build'],
      },
    },
  },
});

vp run loads the task graph for the whole workspace before it looks at the package you targeted, and Vite+ only executes a vite.config.ts when it can'…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WoodyWoodsta
Comment options

Answer selected by WoodyWoodsta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants