MCPcopy
hub / github.com/angular/angular / writeFile

Function writeFile

packages/core/schematics/test/output_migration_spec.ts:23–25  ·  view source on GitHub ↗
(filePath: string, contents: string)

Source from the content-addressed store, hash-verified

21 let previousWorkingDir: string;
22
23 function writeFile(filePath: string, contents: string) {
24 host.sync.write(normalize(filePath), virtualFs.stringToFileBuffer(contents));
25 }
26
27 function runMigration(options?: {path?: string}) {
28 return runner.runSchematic('output-migration', options, tree);

Callers 1

Calls 2

writeMethod · 0.65
normalizeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…