From 353b3c3b94e771ab7856409b8a141eed438f6a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=A7=91=F0=9F=8F=BB=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier?= Date: Mon, 13 Jun 2022 15:34:56 +0200 Subject: [PATCH] chore: keep @jsii/kernel loadable with Node 12+ --- packages/@jsii/kernel/tsconfig.json | 1 + packages/@jsii/runtime/tsconfig.json | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/@jsii/kernel/tsconfig.json b/packages/@jsii/kernel/tsconfig.json index 636c8b11b5..a917d4d525 100644 --- a/packages/@jsii/kernel/tsconfig.json +++ b/packages/@jsii/kernel/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../../../tsconfig-base", "compilerOptions": { + "target": "ES2019", // Keep code-compatible with Node 12+ "rootDir": "src", "outDir": "lib", }, diff --git a/packages/@jsii/runtime/tsconfig.json b/packages/@jsii/runtime/tsconfig.json index ad0053dc81..46669aca6c 100644 --- a/packages/@jsii/runtime/tsconfig.json +++ b/packages/@jsii/runtime/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../../tsconfig-base", + "compilerOptions": { + "target": "ES2019", // Keep source-compatible with Node 12+ + }, "include": [ "**/*.ts", "package.json" @@ -9,8 +12,14 @@ "jest.config.ts", ], "references": [ - { "path": "../kernel" }, - { "path": "../check-node" }, - { "path": "../spec" }, + { + "path": "../kernel" + }, + { + "path": "../check-node" + }, + { + "path": "../spec" + }, ], }