fixed inconsistent module loading with 'require'
This commit is contained in:
@@ -3,8 +3,8 @@ import { db } from "./sql";
|
|||||||
import { Event, type TEventEntityNew, type TGetEventsOptions } from "./component/event/events";
|
import { Event, type TEventEntityNew, type TGetEventsOptions } from "./component/event/events";
|
||||||
import { createPlaceholders, getTsNow, pad_l2 } from "./util";
|
import { createPlaceholders, getTsNow, pad_l2 } from "./util";
|
||||||
import { sendNotification } from "./sendNotification";
|
import { sendNotification } from "./sendNotification";
|
||||||
|
import minimist from "minimist";
|
||||||
const argv = require('minimist')(process.argv.slice(2));
|
const argv = minimist(process.argv.slice(2))
|
||||||
console.log("App started");
|
console.log("App started");
|
||||||
console.dir({argv})
|
console.dir({argv})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user