File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -28,5 +28,11 @@ export function ciMode(env) {
2828 message : "TODO: a future update will do more things..." ,
2929 } ) ;
3030
31+ // TODO: load project
32+
33+ // TODO: resolve root directories
34+
35+ // TODO: for each root directory execute inferredLintCommand
36+
3137 return Promise . resolve ( ) ;
3238}
Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ export class CacheCleanupIntegration extends BaseIntegration {
1111 async init ( ) {
1212 await super . init ( ) ;
1313
14- await this . cleanup ( ) ;
15-
14+ const hasPreviouslyCleaned = this . state . cache . cachesCleaned ;
1615 this . state . cache . cachesCleaned = true ;
17- await this . state . emitCacheUpdated ( ) ;
16+
17+ if ( ! hasPreviouslyCleaned ) {
18+ return await this . state . emitCacheUpdated ( ) ;
19+ }
1820 }
1921
2022 async onConfigUpdated ( ) {
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export class PackageManagerIntegration extends BaseIntegration {
8282 Object . keys ( existingMapping ) . length !== Object . keys ( newMapping ) . length ;
8383
8484 for ( const key of Object . keys ( existingMapping ) ) {
85- if ( existingMapping [ key ] !== newMapping [ key ] ) {
85+ if ( existingMapping [ key ] ?. join ( " " ) !== newMapping [ key ] ?. join ( " " ) ) {
8686 hasDiff = true ;
8787 }
8888
Original file line number Diff line number Diff line change @@ -220,7 +220,15 @@ export class State {
220220 async emitCacheUpdated ( ) {
221221 debugPrint ( `State#emitCacheUpdated` ) ;
222222
223- await cachePersist ( this . cache ) ;
223+ if ( ! this . cachePersistTimer ) {
224+ const _self = this ;
225+ this . cachePersistTimer = setTimeout ( ( ) => {
226+ debugPrint ( "State#emitCacheUpdated :: Running cachePersist" ) ;
227+ cachePersist ( _self . cache ) ;
228+ } , 50 ) ;
229+ } else {
230+ this . cachePersistTimer . refresh ( ) ;
231+ }
224232
225233 for ( const integration of this . integrations ) {
226234 await integration . onCacheUpdated ( ) ;
You can’t perform that action at this time.
0 commit comments