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

Function toPOSIX

src/utils.js:65–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) =>
68 arrify(files).some(file => hasFile(file)) ? t : f

Callers 2

run-script.jsFile · 0.85
getRollupInputsFunction · 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…