mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2025-09-03 22:00:40 +00:00
ts import dir
This commit is contained in:
@@ -6,8 +6,8 @@ import fs from 'node:fs'
|
|||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
|
|
||||||
// SETUP
|
// SETUP
|
||||||
const INPUT = fs.readFileSync(path.join(__dirname, '../input.txt'), 'utf-8').trim()
|
const INPUT = fs.readFileSync(path.join(import.meta.dir, '../input.txt'), 'utf-8').trim()
|
||||||
const TEST = fs.readFileSync(path.join(__dirname, '../test.txt'), 'utf-8').trim()
|
const TEST = fs.readFileSync(path.join(import.meta.dir, '../test.txt'), 'utf-8').trim()
|
||||||
|
|
||||||
// TASK
|
// TASK
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user