Test simpler resource path

This commit is contained in:
Daz DeBoer 2026-01-28 17:11:52 -07:00
parent 49ec880f92
commit 434e3d08cb
No known key found for this signature in database

View File

@ -3,7 +3,7 @@ import fs from 'fs'
export function readResourceFileAsString(...paths: string[]): string {
// Resolving relative to __dirname will allow node to find the resource at runtime
const absolutePath = path.resolve(__dirname, '..', '..', '..', 'sources', 'src', 'resources', ...paths)
const absolutePath = path.resolve(__dirname, '..', 'resources', ...paths)
return fs.readFileSync(absolutePath, 'utf8')
}