MCPcopy
hub / github.com/nestjs/nest / copyMisc

Function copyMisc

tools/gulp/tasks/copy-misc.ts:8–16  ·  view source on GitHub ↗

* Copies assets like Readme.md or LICENSE from the project base path * to all the packages.

()

Source from the content-addressed store, hash-verified

6 * to all the packages.
7 */
8function 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
18task('copy-misc', copyMisc);

Callers

nothing calls this directly

Calls 1

pipeMethod · 0.45

Tested by

no test coverage detected