diff --git a/docs/esm.md b/docs/esm.md index ec2a4f446..127a0eac0 100644 --- a/docs/esm.md +++ b/docs/esm.md @@ -10,8 +10,8 @@ Thanks to this, we can `import` the `type-graphql` package in the ESM projects w It's important to properly configure the project, so that it uses ESM correctly: -- the `module` options should be set to `ES2020/ES2022/ESNext` -- for the NodeJS apps, we should set `moduleResolution` to `"node16"` +- the `module` option should be set to `NodeNext` +- the `moduleResolution` option should be set to `"NodeNext"` All in all, the `tsconfig.json` file should looks like this: @@ -19,8 +19,8 @@ All in all, the `tsconfig.json` file should looks like this: { "compilerOptions": { "target": "es2021", - "module": "es2020", - "moduleResolution": "node16", + "module": "NodeNext", + "moduleResolution": "NodeNext", "experimentalDecorators": true, "emitDecoratorMetadata": true } diff --git a/package-lock.json b/package-lock.json index fc27479df..f6318b88e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -98,7 +98,7 @@ "tsyringe": "^4.8.0", "typedi": "^0.10.0", "typeorm": "^0.3.17", - "typescript": "^5.1.6", + "typescript": "^5.2.2", "typescript-transform-paths": "^3.4.6", "typescript-transformer-esm": "^1.1.0", "ws": "^8.13.0", @@ -15139,9 +15139,9 @@ } }, "node_modules/typescript": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", - "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -27179,9 +27179,9 @@ } }, "typescript": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", - "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", "dev": true }, "typescript-transform-paths": { diff --git a/package.json b/package.json index 8f19dcdcf..cebe851d9 100644 --- a/package.json +++ b/package.json @@ -185,7 +185,7 @@ "tsyringe": "^4.8.0", "typedi": "^0.10.0", "typeorm": "^0.3.17", - "typescript": "^5.1.6", + "typescript": "^5.2.2", "typescript-transform-paths": "^3.4.6", "typescript-transformer-esm": "^1.1.0", "ws": "^8.13.0", diff --git a/tsconfig.esm.json b/tsconfig.esm.json index 10be2b905..79d29413e 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -1,8 +1,8 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "ES2020", - "moduleResolution": "node16", + "module": "NodeNext", + "moduleResolution": "NodeNext", "outDir": "./build/esm" } }