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

Function fromRoot

src/utils.js:64–64  ·  view source on GitHub ↗
(...p)

Source from the content-addressed store, hash-verified

62}
63
64const fromRoot = (...p) => path.join(appDirectory, ...p)
65const toPOSIX = p => p.split(path.sep).join(path.posix.sep)
66const hasFile = (...p) => fs.existsSync(fromRoot(...p))
67const ifFile = (files, t, f) =>

Callers 5

hasFileFunction · 0.85
writeExtraEntryFunction · 0.85
generateTypeDefsFunction · 0.85
getRollupInputsFunction · 0.85
lint.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…