tsconfig: switch target to es2020

This is the base level of the language that the compiler targets (or
understands).  We're about to add some code which uses `#private`
instance variables, which is a es2017 feature.  We already depend on
es2020 library features, so let's allow the same for the core language.

This has a side-effect: setting `target: 'es2020'` changes the default
module resolution approach.  Force it back to `"node"` so we can still
find our `node_modules`.
This commit is contained in:
Allison Karlitskaya 2024-06-21 17:58:04 +02:00
parent 62d767e5e9
commit d024d2dfbd

View file

@ -19,9 +19,11 @@
"dom",
"es2020"
],
"moduleResolution": "node",
"noEmit": true, // we only use `tsc` for type checking
"skipLibCheck": true, // don't check node_modules
"strict": true,
"target": "es2020",
},
"include": [
"pkg/**/*"