Skip to content

Commit

Permalink
fix: @jsii/check-node crashes on loading with older node releases
Browse files Browse the repository at this point in the history
It was built with ES2020 target, which fails to load with Node 10 and 12 as
it makes use of the ?? syntax, which is not available in those releases.
Changing the TypeScript target so that code continues to load in older node
releases.
  • Loading branch information
RomainMuller committed Jun 9, 2022
1 parent de3fc03 commit 5e97ae7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/@jsii/check-node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extends": "../../../tsconfig-base",
"compilerOptions": {
"target": "es2018", // Needs to target older releases of node or else it'll crash on start when using those
"outDir": "./lib",
"rootDir": "./src",
},
"include": ["src/**/*.ts"],
"exclude": ["jest.config.ts"],
"include": [
"src/**/*.ts"
],
"exclude": [
"jest.config.ts"
],
}

0 comments on commit 5e97ae7

Please sign in to comment.