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

Function hasLocalConfig

src/utils.js:174–179  ·  view source on GitHub ↗
(moduleName, searchOptions = {})

Source from the content-addressed store, hash-verified

172}
173
174function hasLocalConfig(moduleName, searchOptions = {}) {
175 const explorerSync = cosmiconfigSync(moduleName, searchOptions)
176 const result = explorerSync.search(pkgPath)
177
178 return result !== null
179}
180
181async function generateTypeDefs(outputDir) {
182 const result = spawn.sync(

Callers 1

format.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…