Function
setTargetMapping
(harness: BuilderHarness<unknown>, mapping: unknown)
Source from the content-addressed store, hash-verified
| 37 | |
| 38 | /** Update package.json with the given mapping for #target. */ |
| 39 | export 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 | |
| 51 | interface TypeScriptConfig { |
| 52 | compilerOptions: { |
Callers
nothing calls this directly
Tested by
no test coverage detected