Is there a purescript-node package that exposes __dirname? (original) (raw)
March 25, 2025, 8:58pm #1
I can’t find it but I’m wondering if it’s in a non-intuitive location.
March 26, 2025, 1:12pm #2
In general this is problematic. What do you expect it to resolve to? It will likely be some module directory in output which isn’t super useful. My recommendation is to have a custom index.js entry point that passes in a directory to main as an argument. This tends to be much more reliable.
2 Likes