File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -222,14 +222,17 @@ const startManager = async ({
222
222
223
223
if ( options . cache ) {
224
224
if ( options . managerCache ) {
225
- const configString = stringify ( managerConfig ) ;
225
+ // Drop the `cache` property because it'll change as a result of writing to the cache.
226
+ const { cache : _ , ...baseConfig } = managerConfig ;
227
+ const configString = stringify ( baseConfig ) ;
226
228
const cachedConfig = await options . cache . get ( 'managerConfig' ) ;
227
229
options . cache . set ( 'managerConfig' , configString ) ;
228
230
if ( configString === cachedConfig && ( await pathExists ( outputDir ) ) ) {
229
231
logger . info ( '=> Using cached manager' ) ;
230
232
managerConfig = null ;
231
233
}
232
234
} else {
235
+ logger . info ( '=> Removing cached managerConfig' ) ;
233
236
options . cache . remove ( 'managerConfig' ) ;
234
237
}
235
238
}
You can’t perform that action at this time.
0 commit comments