Skip to content

Commit

Permalink
chore(deps-dev): bump typescript from 5.1.6 to 5.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Sep 27, 2023
1 parent 3f177b4 commit 39200cb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions docs/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ 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:

```json title="tsconfig.json"
{
"compilerOptions": {
"target": "es2021",
"module": "es2020",
"moduleResolution": "node16",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ES2020",
"moduleResolution": "node16",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "./build/esm"
}
}

0 comments on commit 39200cb

Please sign in to comment.