MCPcopy Create free account
hub / github.com/Nozbe/WatermelonDB / createModulePath

Function createModulePath

scripts/make.mjs:66–70  ·  view source on GitHub ↗
(format)

Source from the content-addressed store, hash-verified

64const removeSourcePath = replace(SOURCE_PATH, '')
65
66const createModulePath = (format) => {
67 const formatPathSegment = format === CJS_MODULES ? [] : [format]
68 const modulePath = resolvePath(DIR_PATH, ...formatPathSegment)
69 return replace(SOURCE_PATH, modulePath)
70}
71
72const createFolder = (dir) => mkdirp.sync(resolvePath(dir))
73

Callers 1

buildModuleFunction · 0.85

Calls 1

resolvePathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…