* Copies assets like Readme.md or LICENSE from the project base path * to all the packages.
()
| 6 | * to all the packages. |
| 7 | */ |
| 8 | function copyMisc(): NodeJS.ReadWriteStream { |
| 9 | const miscFiles = src(['Readme.md', 'LICENSE', '.npmignore']); |
| 10 | // Since `dest()` does not take a string-array, we have to append it |
| 11 | // ourselves |
| 12 | return packagePaths.reduce( |
| 13 | (stream, packagePath) => stream.pipe(dest(packagePath)), |
| 14 | miscFiles, |
| 15 | ); |
| 16 | } |
| 17 | |
| 18 | task('copy-misc', copyMisc); |