From 4dc9da6a4b20987a1f0df47c884b6f2891f4e415 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me>
Date: Fri, 4 Aug 2023 21:29:34 +0200
Subject: [PATCH] ExerciceHelper => Migrate from hjson to json5

---
 helpers/ExerciceHelper.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/helpers/ExerciceHelper.ts b/helpers/ExerciceHelper.ts
index 334edbc..a51f113 100644
--- a/helpers/ExerciceHelper.ts
+++ b/helpers/ExerciceHelper.ts
@@ -1,7 +1,7 @@
 import Ajv, { ErrorObject, JTDSchemaType } from 'ajv/dist/jtd';
 import fs                                  from 'fs';
 import ExerciceResultsFile                 from '../types/Dojo/ExerciceResultsFile';
-import hjson                               from 'hjson';
+import JSON5                               from 'json5';
 
 
 class ExerciceHelper {
@@ -34,7 +34,7 @@ class ExerciceHelper {
 
         const validator = ajv.compile(schema);
 
-        const results = hjson.parse(fs.readFileSync(resultsFilePath, 'utf8'));
+        const results = JSON5.parse(fs.readFileSync(resultsFilePath, 'utf8'));
         const isValid = validator(results);
 
         return {
-- 
GitLab