Fix module resolution when $CWD != .

This commit is contained in:
Emma [it/its]@Rory&
2024-10-25 18:57:29 +02:00
committed by Rory&
parent 168758924c
commit 2feb90475e
8 changed files with 22 additions and 4 deletions

View File

@@ -16,7 +16,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
require("module-alias/register");
import moduleAlias from "module-alias";
moduleAlias(__dirname + "../../../package.json");
process.on("uncaughtException", console.error);
process.on("unhandledRejection", console.error);