Switch from commonjs to nodenext

This commit is contained in:
Rory& 2025-10-15 17:53:04 +02:00
parent a03ce73459
commit fca56035c0
2 changed files with 4 additions and 2 deletions

View File

@ -31,6 +31,8 @@ export class MailJetEmailClient extends BaseEmailClient {
try {
// try to import the transporter package
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
this.mailJet = new (await import("node-mailjet")).default({
apiKey: apiKey,
apiSecret: apiSecret,

View File

@ -28,9 +28,9 @@
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
/* Modules */
"module": "commonjs" /* Specify what module code is generated. */,
"module": "NodeNext" /* Specify what module code is generated. */,
// "rootDir": "./src", /* Specify the root folder within your source files. */
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
"moduleResolution": "nodenext" /* Specify how TypeScript looks up a file from a given module specifier. */,
// "baseUrl": "./src/", //deprecated
"paths": {
"*": ["./src/*"],