sindresorhus / open

Open stuff like URLs, files, executables. Cross-platform.
MIT License
3.18k stars 219 forks source link

fix: remove __dirname #309

Closed powerfulyang closed 1 year ago

powerfulyang commented 1 year ago

When I use this library in jest. "SyntaxError: Identifier '__dirname' has already been declared" has been thrown.

sindresorhus commented 1 year ago

This is not a problem with this package.

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c