Skip to content

Commit 995a1b6

Browse files
ducinoskardudycz
authored andcommitted
fix+mention on tsconfig.json lib vs node version
1 parent 5375fb4 commit 995a1b6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

workshops/introduction_to_event_sourcing/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ Follow the instructions in exercises folders.
4242

4343
1. Install git - https://git-scm.com/downloads.
4444
2. Clone this repository.
45-
3. Install Node.js 20.10 - https://Node.js.org/en/download/ (Or better using NVM).
45+
3. Install Node.js 20.10 - https://Node.js.org/en/download/ (or better using NVM).
46+
- if you're using Node.js higher than v20, you can update `tsconfig.json`'s `compilerOptions.lib|target` in order to use newer JavaScript standard APIs, e.g. `Array.fromAsync`
4647
4. Install VSCode, WebStorm or other prefered IDE.
4748
5. Install docker - https://docs.docker.com/engine/install/.
4849
6. Open the current folder in IDE.

workshops/introduction_to_event_sourcing/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
/* Basic Options */
77
// "incremental": true, /* Enable incremental compilation */
8-
"target": "ESNext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
8+
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
99
"verbatimModuleSyntax": true,
1010
"module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
1111
"lib": [
12-
"ESNext"
12+
"ES2023"
1313
] /* Specify library files to be included in the compilation. */,
1414
"useDefineForClassFields": true,
1515
//"allowJs": true /* Allow javascript files to be compiled. */,

0 commit comments

Comments
 (0)