(directory, file)
| 45 | } |
| 46 | |
| 47 | function 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 | |
| 57 | function getDocgen(config, filePath) { |
| 58 | if (filePath.match(/\.tsx$/)) |
no outgoing calls
no test coverage detected