Skip to content

Commit

Permalink
fix: potential fix for textfile path issues (#8)
Browse files Browse the repository at this point in the history
* potential fix for #7, tries to guess the installed directory of the package using process.argv

* updated to just use __dirname, duh

* fix for failing check
  • Loading branch information
jeffgca authored Apr 6, 2024
1 parent 0f1da1d commit eec286e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/ascii.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default async function ascii(
}

const file = await fs.readFile(
path.join(process.cwd(), "./ascii", `${name}.txt`),
path.join(__dirname, "../ascii", `${name}.txt`),
);

let _ascii = file.toString();
Expand Down

0 comments on commit eec286e

Please sign in to comment.