(srcPath, destPath)
| 15 | } |
| 16 | |
| 17 | function transpileTsFile(srcPath, destPath) { |
| 18 | const source = readFileSync(srcPath, "utf8"); |
| 19 | const transpiled = stripTypeScriptTypes(source, { |
| 20 | mode: "transform", |
| 21 | sourceUrl: relative(rootDir, srcPath), |
| 22 | }); |
| 23 | const rewritten = rewriteRelativeImports(transpiled); |
| 24 | mkdirSync(dirname(destPath), { recursive: true }); |
| 25 | writeFileSync(destPath, rewritten); |
| 26 | } |
| 27 | |
| 28 | function walkTsFiles(dirPath) { |
| 29 | for (const entry of readdirSync(dirPath)) { |
no test coverage detected