File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -587,12 +587,13 @@ const patternlab_engine = function (config) {
587
587
patternlab . graph . upgradeVersion ( ) ;
588
588
}
589
589
// Flags
590
- const incrementalBuildsEnabled = ! ( deletePatternDir || graphNeedsUpgrade ) ;
590
+ patternlab . incrementalBuildsEnabled = ! ( deletePatternDir || graphNeedsUpgrade ) ;
591
591
592
592
//
593
593
// CLEAN BUILD DIRECTORY, maybe
594
594
//
595
- cleanBuildDirectory ( incrementalBuildsEnabled ) ;
595
+ cleanBuildDirectory ( patternlab . incrementalBuildsEnabled ) ;
596
+
596
597
buildGlobalData ( ) ;
597
598
598
599
// diveSync once to perform iterative populating of patternlab object
@@ -637,7 +638,7 @@ const patternlab_engine = function (config) {
637
638
// rebuild all patterns
638
639
patternsToBuild = null ;
639
640
640
- if ( incrementalBuildsEnabled ) {
641
+ if ( patternlab . incrementalBuildsEnabled ) {
641
642
// When the graph was loaded from file, some patterns might have been moved/deleted between runs
642
643
// so the graph data become out of sync
643
644
patternlab . graph . sync ( ) . forEach ( n => {
You can’t perform that action at this time.
0 commit comments