INNER CODE UNIT · JavaScript
shouldUseYarn
benawad/create-graphql-api · packages/create-graphql-api/src/index.js:50
function shouldUseYarn() {
try {
execSync("yarn --version", { stdio: "ignore" });
return true;
} catch (e) {
return false;
}
}
process.chdir(projectDestination);
fs.writeFileSync(
".gitignore",
`node_modules
dist
database.sqlite`
);