MCPcopy Index your code
hub / github.com/subquery/subql / checkYarnExists

Function checkYarnExists

packages/cli/src/controller/init-controller.ts:357–364  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

355}
356
357function checkYarnExists(): boolean {
358 try {
359 childProcess.execSync('yarn --version');
360 return true;
361 } catch (e) {
362 return false;
363 }
364}
365
366export async function prepareProjectScaffold(projectPath: string): Promise<void> {
367 // remove all existing abis & handler files

Callers 1

installDependenciesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected