(originalId: string, id: string, vendorPath: string)
| 221 | } |
| 222 | |
| 223 | async function copyVendor(originalId: string, id: string, vendorPath: string) { |
| 224 | try { |
| 225 | await mkdirp(path.dirname(vendorPath)); |
| 226 | await fs.copyFile(id, vendorPath); |
| 227 | } catch (e) { |
| 228 | log.error(`Could not create vendor file for ${originalId}`, e); |
| 229 | process.exit(1); |
| 230 | } |
| 231 | } |