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 0af92795eaf1680fb308c0b50a651e88b4741fe0..aa311fa5fdd5861170d746f9c38abe97f314f5f9 100644 --- a/microservices/auth/tsconfig.json +++ b/microservices/auth/tsconfig.json @@ -4,11 +4,12 @@ "outDir" : "dist", "strict" : true, "target" : "ES2022", - "module" : "commonjs", + "module" : "ES2022", "sourceMap" : true, "noImplicitAny" : true, "esModuleInterop" : true, "moduleResolution": "node", + "module": "ES2022", "paths" : { "*": [ "node_modules/*"