mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2024-12-21 15:46:28 +00:00
ts import dir
This commit is contained in:
parent
40e3c65a5b
commit
416700e310
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user