From c89a0e60ee6e95081421db2d0da3e275f7778d27 Mon Sep 17 00:00:00 2001 From: Ammar Najjar Date: Fri, 23 Dec 2022 05:33:18 +0100 Subject: [PATCH] do not read cache with force enabled --- src/generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator.ts b/src/generator.ts index f00b39a..27f30a9 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -53,7 +53,7 @@ export class Generator { this.outputDir = outputDir; this.force = force; this.structureFile = join(this.outputDir, structureFile); - const content = this.readStructure(); + const content = force ? undefined : this.readStructure(); this.allActions = content?.allActions ?? this.getAllActions(); this.fromComponents = content?.fromComponents; this.fromEffects = content?.fromEffects;