MCPcopy Create free account
hub / github.com/babel/babel / getYarnAdd

Function getYarnAdd

scripts/generators/readmes.ts:36–37  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

34const getNpmInstall = (name: string) =>
35 `npm install ${isDep(name) ? "--save" : "--save-dev"} ${name}`;
36const getYarnAdd = (name: string) =>
37 `yarn add ${name}${isDep(name) ? "" : " --dev"}`;
38
39const labels: Record<string, string> = {
40 "babel-preset-flow": "area: flow",

Callers 1

generateReadmeFunction · 0.85

Calls 1

isDepFunction · 0.85

Tested by

no test coverage detected