@@ -401,6 +401,21 @@ function getOrCreateProjectGraph(projectSpec, paths) {
401401 return projectGraph ;
402402}
403403
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+
404419/**
405420 * @param {ProjectGraph } projectGraph
406421 * @param {ResolvedProjectOptions } resolvedOptions
@@ -473,7 +488,7 @@ function ensureCompileTask(projectGraph, options) {
473488 ? tsc . createProject ( configFilePath , { typescript : require ( options . typescript . typescript ) } )
474489 : tsc_oop . createProject ( configFilePath , { } , { typescript : options . typescript . typescript } ) ;
475490 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 ) } ) ) )
477492 . pipe ( gulpif ( sourceMap || inlineSourceMap , sourcemaps . init ( ) ) )
478493 . pipe ( project ( ) ) ;
479494 const js = ( options . js ? options . js ( stream . js ) : stream . js )
0 commit comments