From f974684945bd7549ecff56053479245d2009cf9a Mon Sep 17 00:00:00 2001 From: chiko Date: Fri, 24 Oct 2025 02:49:27 +0200 Subject: [PATCH] fixed inconsistent module loading with 'require' --- src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index 723d77b..1f6863f 100644 --- a/src/app.ts +++ b/src/app.ts @@ -3,8 +3,8 @@ import { db } from "./sql"; import { Event, type TEventEntityNew, type TGetEventsOptions } from "./component/event/events"; import { createPlaceholders, getTsNow, pad_l2 } from "./util"; import { sendNotification } from "./sendNotification"; - -const argv = require('minimist')(process.argv.slice(2)); +import minimist from "minimist"; +const argv = minimist(process.argv.slice(2)) console.log("App started"); console.dir({argv})