MCPcopy Create free account
hub / github.com/kentcdodds/kcd-scripts / ifTypescript

Function ifTypescript

src/utils.js:91–91  ·  view source on GitHub ↗
(t, f)

Source from the content-addressed store, hash-verified

89
90const hasTypescript = hasAnyDep('typescript') && hasFile('tsconfig.json')
91const ifTypescript = (t, f) => (hasTypescript ? t : f)
92
93function parseEnv(name, def) {
94 if (envIsSet(name)) {

Callers 1

babelrc.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…