* Copies a file into the package output to the specified location. * @param inputPath File that should be copied. * @param outputRelativePath Relative path in the output directory where the * file is written to.
(inputPath: string, outputRelativePath: string)
| 117 | * file is written to. |
| 118 | */ |
| 119 | function copyFile(inputPath: string, outputRelativePath: string) { |
| 120 | const fileContent = fs.readFileSync(inputPath, 'utf8'); |
| 121 | writeFile(outputRelativePath, fileContent); |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Gets the relative path for the given file within the owning package. This |