From 416700e3107d23430a360343497a6fda467d8656 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Sat, 2 Dec 2023 00:28:00 +0100 Subject: [PATCH] ts import dir --- _templates/riddle/new/typescript.ejs.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_templates/riddle/new/typescript.ejs.t b/_templates/riddle/new/typescript.ejs.t index e467e4c..764d42c 100644 --- a/_templates/riddle/new/typescript.ejs.t +++ b/_templates/riddle/new/typescript.ejs.t @@ -6,8 +6,8 @@ import fs from 'node:fs' import path from 'node:path' // SETUP -const INPUT = fs.readFileSync(path.join(__dirname, '../input.txt'), 'utf-8').trim() -const TEST = fs.readFileSync(path.join(__dirname, '../test.txt'), 'utf-8').trim() +const INPUT = fs.readFileSync(path.join(import.meta.dir, '../input.txt'), 'utf-8').trim() +const TEST = fs.readFileSync(path.join(import.meta.dir, '../test.txt'), 'utf-8').trim() // TASK