Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 16 support #47

Merged
merged 4 commits into from
Apr 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Specify es2020 language target in tsconfig
liamgriffiths committed Apr 2, 2024

Verified

This commit was signed with the committer’s verified signature.
peterzhuamazon Peter Zhu
commit 17f7ff86c291c9938d7cf8622085a13fe3469481
24 changes: 17 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@
/* Visit https://aka.ms/tsconfig to read more about this file */

/* Language and Environment */
"target": "es2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
"target": "es2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,

/* Modules */
"module": "es2022" /* Specify what module code is generated. */,
"moduleResolution": "bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
"module": "commonjs" /* Specify what module code is generated. */,
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
"resolveJsonModule": true,
"esModuleInterop": true,

/* Emit */
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
@@ -50,8 +50,18 @@
}
},

/* Internal-use: running example scripts */
/**
* Internal-use: running example scripts
* We're mostly developing on es2022/Node 18+, but to extend that support a bit futher
* back our main compiler options are overridden when running with ts-node to use newer
* syntax, eg. top-level await.
*/
"ts-node": {
"esm": true
"esm": true,
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"moduleResolution": "bundler"
}
}
}