MCPcopy Index your code
hub / github.com/angular/angular-cli / setTargetMapping

Function setTargetMapping

modules/testing/builder/src/dev_prod_mode.ts:39–49  ·  view source on GitHub ↗
(harness: BuilderHarness<unknown>, mapping: unknown)

Source from the content-addressed store, hash-verified

37
38/** Update package.json with the given mapping for #target. */
39export async function setTargetMapping(harness: BuilderHarness<unknown>, mapping: unknown) {
40 await harness.writeFile(
41 'package.json',
42 JSON.stringify({
43 name: 'ng-test-app',
44 imports: {
45 '#target': mapping,
46 },
47 }),
48 );
49}
50
51interface TypeScriptConfig {
52 compilerOptions: {

Callers

nothing calls this directly

Calls 1

writeFileMethod · 0.65

Tested by

no test coverage detected