My file structure looks as follows:
root
src
test.ts
template.xlsx
dist
// compiled js source ...
In test.ts, I try to reference the spreadsheet template as follows:
path.join(__dirname, "template.xlsx");
But it is searching in path/to/root/dist instead of looking in path/to/root/src. What's the best way to access my file?
template.xlsxis also placed intodist