From d58ec9b7fed35b32fda089de675ceb6c563dbcb8 Mon Sep 17 00:00:00 2001 From: "benjamin.anthonio" <benjamin.anthonioz@etu.hesge.ch> Date: Sat, 5 Apr 2025 14:19:49 +0200 Subject: [PATCH] update package.json --- microservices/auth/package.json | 1 + microservices/auth/tsconfig.json | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/microservices/auth/package.json b/microservices/auth/package.json index eecfbab..532a52f 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 64ca039..0be36f7 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" -- GitLab