Home / Function/ run() — vite Function Reference

run() — vite Function Reference

Architecture documentation for the run() function in cli.spec.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  98f51909_15c2_e2d7_4600_a1a61977cabf["run()"]
  7cbe649b_da11_1a9e_67ab_1b05652f2411["cli.spec.ts"]
  98f51909_15c2_e2d7_4600_a1a61977cabf -->|defined in| 7cbe649b_da11_1a9e_67ab_1b05652f2411
  style 98f51909_15c2_e2d7_4600_a1a61977cabf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/create-vite/__tests__/cli.spec.ts lines 17–22

const run = (args: string[], options?: SyncOptions) => {
  return execaCommandSync(`node ${CLI_PATH} ${args.join(' ')}`, {
    env: { ...process.env, _VITE_TEST_CLI: 'true' },
    ...options,
  })
}

Subdomains

Frequently Asked Questions

What does run() do?
run() is a function in the vite codebase, defined in packages/create-vite/__tests__/cli.spec.ts.
Where is run() defined?
run() is defined in packages/create-vite/__tests__/cli.spec.ts at line 17.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free