diff --git a/microservices/auth/package.json b/microservices/auth/package.json index eecfbabb94f4e2f1a85dbcb77a6a779eabcf9522..532a52fc5d490908dff8225def09485b64e71bd2 100644 --- a/microservices/auth/package.json +++ b/microservices/auth/package.json @@ -5,6 +5,7 @@ "license": "", "author": "Michaƫl Minelli <michael-jean.minelli@hesge.ch>", "main": "dist/src/app.js", + "type": "module", "scripts": { "env:decrypt": "npx dotenvx decrypt", "env:update": "npx dotenvx encrypt", diff --git a/microservices/auth/tsconfig.json b/microservices/auth/tsconfig.json index 64ca039a9bb1569e5f513a08bd014b76f566ea5a..0be36f78b1e73fa06a83a2df8bb8877cce44063a 100644 --- a/microservices/auth/tsconfig.json +++ b/microservices/auth/tsconfig.json @@ -3,18 +3,22 @@ "baseUrl" : ".", "outDir" : "dist", "strict" : true, - "target" : "ESNext", - "module" : "ESNext", + "target" : "ES2022", + "module" : "ES2022", "sourceMap" : true, "noImplicitAny" : true, "esModuleInterop" : true, - "moduleResolution": "node", + "module": "ESNext", + "moduleResolution": "Node", "paths" : { "*": [ "node_modules/*" ] } }, + "ts-node": { + "esm": true + }, "include" : [ "src/**/*.ts", "prisma/seed.ts"