(entry: EntryInfo)
| 33 | } |
| 34 | |
| 35 | function processPackageJsonFile(entry: EntryInfo) { |
| 36 | const dirPath = path.dirname(entry.path); |
| 37 | const outputFilePath = path.join(outputFolder, entry.path); |
| 38 | |
| 39 | ensureDirectoryExistence(outputFilePath); |
| 40 | |
| 41 | const json = require(entry.fullPath); |
| 42 | if (json.main) { |
| 43 | (<any>fs).copyFileSync(entry.fullPath, outputFilePath); |
| 44 | logFileCreated(outputFilePath); |
| 45 | addTestImport(dirPath); |
| 46 | |
| 47 | const mainFile = path.join(dirPath, json.main); |
| 48 | createReExportFile(mainFile, '.ts'); |
| 49 | addTestImport(mainFile); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | function processDefinitionFile(entry: EntryInfo) { |
| 54 | if (dtsBlacklist.includes(entry.path)) { |
nothing calls this directly
no test coverage detected