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