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 {
|
||||||
// try to import the transporter package
|
// 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({
|
this.mailJet = new (await import("node-mailjet")).default({
|
||||||
apiKey: apiKey,
|
apiKey: apiKey,
|
||||||
apiSecret: apiSecret,
|
apiSecret: apiSecret,
|
||||||
|
|||||||
@ -28,9 +28,9 @@
|
|||||||
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
||||||
|
|
||||||
/* Modules */
|
/* 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. */
|
// "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
|
// "baseUrl": "./src/", //deprecated
|
||||||
"paths": {
|
"paths": {
|
||||||
"*": ["./src/*"],
|
"*": ["./src/*"],
|
||||||
|
|||||||
Reference in New Issue
Block a user