From c78f749f42472fe19e13a53eba8caa99ce127945 Mon Sep 17 00:00:00 2001 From: tony Date: Thu, 5 Feb 2026 10:17:31 +0200 Subject: [PATCH 1/2] refactor: replace Deno.exit with process.exit --- src/ui.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui.ts b/src/ui.ts index 8e3ecc1..2da7135 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -1,9 +1,10 @@ import { Exercise } from "./exercise.ts"; import { Colors } from "./deps.ts"; +import process from "node:process"; const congratsAndExit = () => { console.log("🎉 Congrats! You have finished all the exercises!"); - Deno.exit(0); + process.exit(0); }; const nextInstuctions = () => { From 3726a4df077ea8e060f5823951bf2fadeff1ee16 Mon Sep 17 00:00:00 2001 From: tony Date: Thu, 5 Feb 2026 10:18:21 +0200 Subject: [PATCH 2/2] refactor: replace Deno.readTextFile with fs.readFile --- src/runner.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runner.ts b/src/runner.ts index 4cc04d0..2112d02 100644 --- a/src/runner.ts +++ b/src/runner.ts @@ -1,4 +1,5 @@ import { Exercise } from "./exercise.ts"; +import { readFile } from "node:fs/promises"; interface RunResult { ok: boolean; @@ -26,7 +27,7 @@ const check = async (exercise: Exercise): Promise => { }; const isDone = async (exercise: Exercise): Promise => { - return !(await Deno.readTextFile(exercise.path)).includes("// I AM NOT DONE"); + return !(await readFile(exercise.path, "utf-8")).includes("// I AM NOT DONE"); }; export { check, isDone };