Skip to content
vxvx
GitHubBlueskydev.toRSS

vx from your own scripts

Plan or run tasks from TypeScript with run and planRun.

planRun called from a script.

A release script or a bot may want to know what would run before it runs anything. @vzn/vx exports the same planner and runner the CLI uses.

Same inputs, same keys, same result as the command line.

// config

// scripts/plan.ts
import { planRun } from '@vzn/vx'

const plan = await planRun({ cwd: process.cwd(), tasks: ['build'], projects: ['@demo/web'] })
console.log(plan)
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.