From a9cf72b090bf9d8de33d098b812914057e12df50 Mon Sep 17 00:00:00 2001 From: daknhh Date: Fri, 23 Feb 2024 10:14:30 +0100 Subject: [PATCH] fix filepath --- lib/tools/enumcheck.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tools/enumcheck.ts b/lib/tools/enumcheck.ts index 86f37c72..c5e6081c 100644 --- a/lib/tools/enumcheck.ts +++ b/lib/tools/enumcheck.ts @@ -44,7 +44,7 @@ async function checkLabelsForRuleGroup(ruleGroupName: any) { const availableLabels = response.AvailableLabels.map((label: { Name: unknown; }) => label.Name); // Read labels from enums.ts file - const enumFilePath = "../types/enums.ts"; + const enumFilePath = "./lib/types/enums.ts"; const enumLabels = readEnumFile(enumFilePath); // Check if available labels are present in the enums.ts file @@ -75,7 +75,7 @@ async function checkRulesForRuleGroup(ruleGroupName: unknown) { const availableRules = response.Rules.map((rule: { Name: unknown; }) => rule.Name); // Read rules from enums.ts file - const enumFilePath = "./types/enums.ts"; + const enumFilePath = "./lib/types/enums.ts"; const enumRules = readEnumFile(enumFilePath); // Check if available rules are present in the enums.ts file