MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / runInit

Function runInit

packages/vite/helpers/init.ts:133–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133export async function runInit() {
134 const pkg = readPackageJson();
135 ensureDependencies(pkg);
136 ensureScripts(pkg);
137 writePackageJson(pkg);
138 ensureGitignore();
139 ensureViteConfig();
140 console.log('[@nativescript/vite] Project initialized for Vite dev server.');
141}

Callers 1

index.tsFile · 0.85

Calls 7

readPackageJsonFunction · 0.85
ensureDependenciesFunction · 0.85
ensureScriptsFunction · 0.85
writePackageJsonFunction · 0.85
ensureGitignoreFunction · 0.85
ensureViteConfigFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected