ts import dir

This commit is contained in:
Niccolo Borgioli 2023-12-02 00:28:00 +01:00
parent 40e3c65a5b
commit 416700e310
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B

View File

@ -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