MCPcopy
hub / github.com/vitejs/vite / install

Function install

packages/create-vite/src/index.ts:414–426  ·  view source on GitHub ↗
(root: string, agent: string)

Source from the content-addressed store, hash-verified

412}
413
414function install(root: string, agent: string) {
415 if (process.env._VITE_TEST_CLI) {
416 prompts.log.step(
417 `Installing dependencies with ${agent}... (skipped in test)`,
418 )
419 return
420 }
421 prompts.log.step(`Installing dependencies with ${agent}...`)
422 run(getInstallCommand(agent), {
423 stdio: 'inherit',
424 cwd: root,
425 })
426}
427
428function start(root: string, agent: string) {
429 if (process.env._VITE_TEST_CLI) {

Callers 1

initFunction · 0.70

Calls 2

getInstallCommandFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected