MCPcopy Create free account
hub / github.com/blueberryapps/react-bluekit / getImportFile

Function getImportFile

src/createBlueKit.js:47–55  ·  view source on GitHub ↗
(directory, file)

Source from the content-addressed store, hash-verified

45}
46
47function getImportFile(directory, file) {
48 if (directory.match(/node_modules/)) {
49 const pathParts = file.replace(/\.(js|jsx|tsx)$/, '').split(path.sep)
50 pathParts[1] = 'lib'
51 return pathParts.join(path.sep)
52 }
53
54 return file[0] === '.' ? file : `./${file}`
55}
56
57function getDocgen(config, filePath) {
58 if (filePath.match(/\.tsx$/))

Callers 1

generateComponentDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected