* Adds a file to the zip archive, if it exists. * @param {string} sourcePath * @param {string} zipPath
(sourcePath, zipPath)
| 24 | * @param {string} zipPath |
| 25 | */ |
| 26 | function addLocalFileIfExists(sourcePath, zipPath) { |
| 27 | if (fs.existsSync(sourcePath)) { |
| 28 | zip.addLocalFile(sourcePath, zipPath); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Adds frameworks to the zip archive. |
no outgoing calls
no test coverage detected