@@ -401,6 +401,21 @@ function getOrCreateProjectGraph(projectSpec, paths) {
401
401
return projectGraph ;
402
402
}
403
403
404
+ /**
405
+ * @param {ResolvedPathOptions } paths
406
+ */
407
+ function createParseProject ( paths ) {
408
+ /**
409
+ * @param {string } configFilePath
410
+ */
411
+ function getProject ( configFilePath ) {
412
+ const projectSpec = resolveProjectSpec ( configFilePath , paths , /*referrer*/ undefined ) ;
413
+ const projectGraph = getOrCreateProjectGraph ( projectSpec , defaultPaths ) ;
414
+ return projectGraph && projectGraph . project ;
415
+ }
416
+ return getProject ;
417
+ }
418
+
404
419
/**
405
420
* @param {ProjectGraph } projectGraph
406
421
* @param {ResolvedProjectOptions } resolvedOptions
@@ -473,7 +488,7 @@ function ensureCompileTask(projectGraph, options) {
473
488
? tsc . createProject ( configFilePath , { typescript : require ( options . typescript . typescript ) } )
474
489
: tsc_oop . createProject ( configFilePath , { } , { typescript : options . typescript . typescript } ) ;
475
490
const stream = project . src ( )
476
- . pipe ( gulpif ( ! options . force , upToDate ( projectGraph . project , { verbose : options . verbose } ) ) )
491
+ . pipe ( gulpif ( ! options . force , upToDate ( projectGraph . project , { verbose : options . verbose , parseProject : createParseProject ( options . paths ) } ) ) )
477
492
. pipe ( gulpif ( sourceMap || inlineSourceMap , sourcemaps . init ( ) ) )
478
493
. pipe ( project ( ) ) ;
479
494
const js = ( options . js ? options . js ( stream . js ) : stream . js )
0 commit comments