Switch from commonjs to nodenext
This commit is contained in:
parent
a03ce73459
commit
fca56035c0
@ -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,
|
||||
|
||||
@ -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/*"],
|
||||
|
||||
Reference in New Issue
Block a user