MCPcopy Create free account
hub / github.com/angular/dev-infra / copyFile

Function copyFile

bazel/rules/rules_angular/src/ng_package/packager/index.ts:119–122  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected