run() — vite Function Reference
Architecture documentation for the run() function in index.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 282a997b_9e00_e156_622e_62b2131bc496["run()"] ebed723b_f143_390f_439d_dfaa680d6d16["index.ts"] 282a997b_9e00_e156_622e_62b2131bc496 -->|defined in| ebed723b_f143_390f_439d_dfaa680d6d16 c8b19a47_ac83_3632_1e20_c192b06e2cac["install()"] c8b19a47_ac83_3632_1e20_c192b06e2cac -->|calls| 282a997b_9e00_e156_622e_62b2131bc496 21c23839_d37b_7105_7569_d8c6f394b60d["start()"] 21c23839_d37b_7105_7569_d8c6f394b60d -->|calls| 282a997b_9e00_e156_622e_62b2131bc496 style 282a997b_9e00_e156_622e_62b2131bc496 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/create-vite/src/index.ts lines 407–418
function run([command, ...args]: string[], options?: SpawnOptions) {
const { status, error } = spawn.sync(command, args, options)
if (status != null && status > 0) {
process.exit(status)
}
if (error) {
console.error(`\n${command} ${args.join(' ')} error!`)
console.error(error)
process.exit(1)
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does run() do?
run() is a function in the vite codebase, defined in packages/create-vite/src/index.ts.
Where is run() defined?
run() is defined in packages/create-vite/src/index.ts at line 407.
What calls run()?
run() is called by 2 function(s): install, start.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free