(file: string)
| 14 | } |
| 15 | |
| 16 | function copyToDist(file: string) { |
| 17 | const dest = path.join(distFolder, file); |
| 18 | let parent = path.dirname(dest); |
| 19 | while (!fs.existsSync(parent)) { |
| 20 | fs.mkdirSync(parent); |
| 21 | parent = path.dirname(parent); |
| 22 | } |
| 23 | fs.writeFileSync(dest, fs.readFileSync(path.join(buildFolder, file))); |
| 24 | } |
| 25 | |
| 26 | rimraf(distFolder, (err) => { |
| 27 | if (err) { |
no test coverage detected