@@ -19,6 +19,13 @@ import { from } from 'rxjs';
19
19
import { switchMap } from 'rxjs/operators' ;
20
20
import { getRootTsConfigPath } from 'nx/src/utils/typescript' ;
21
21
22
+ type BuildTargetOptions = {
23
+ tsConfig : string ;
24
+ buildLibsFromSource ?: boolean ;
25
+ customWebpackConfig ?: { path ?: string } ;
26
+ indexFileTransformer ?: string ;
27
+ } ;
28
+
22
29
export function executeWebpackDevServerBuilder (
23
30
rawOptions : Schema ,
24
31
context : import ( '@angular-devkit/architect' ) . BuilderContext
@@ -38,7 +45,7 @@ export function executeWebpackDevServerBuilder(
38
45
const buildTarget =
39
46
browserTargetProjectConfiguration . targets [ parsedBrowserTarget . target ] ;
40
47
41
- const buildTargetOptions = {
48
+ const buildTargetOptions : BuildTargetOptions = {
42
49
...buildTarget . options ,
43
50
...( parsedBrowserTarget . configuration
44
51
? buildTarget . configurations [ parsedBrowserTarget . configuration ]
@@ -83,13 +90,9 @@ export function executeWebpackDevServerBuilder(
83
90
let dependencies : DependentBuildableProjectNode [ ] ;
84
91
if ( ! buildLibsFromSource ) {
85
92
const { tsConfigPath, dependencies : foundDependencies } =
86
- createTmpTsConfigForBuildableLibs (
87
- buildTargetOptions . buildTargetTsConfigPath ,
88
- context ,
89
- {
90
- target : parsedBrowserTarget . target ,
91
- }
92
- ) ;
93
+ createTmpTsConfigForBuildableLibs ( buildTargetOptions . tsConfig , context , {
94
+ target : parsedBrowserTarget . target ,
95
+ } ) ;
93
96
dependencies = foundDependencies ;
94
97
95
98
// We can't just pass the tsconfig path in memory to the angular builder
0 commit comments