From d866d19c7075747235814d9bd2aa66251f3a1a17 Mon Sep 17 00:00:00 2001 From: Pavi <13897936+pavinthan@users.noreply.github.com> Date: Sat, 25 May 2024 21:10:35 +0800 Subject: [PATCH 1/2] esbuild powered compiler tsx is powered by esbuild for fast TypeScript compilation --- .../aws-cdk/lib/init-templates/app/typescript/cdk.template.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk/lib/init-templates/app/typescript/cdk.template.json b/packages/aws-cdk/lib/init-templates/app/typescript/cdk.template.json index e9b5bea306944..56015ef046a49 100644 --- a/packages/aws-cdk/lib/init-templates/app/typescript/cdk.template.json +++ b/packages/aws-cdk/lib/init-templates/app/typescript/cdk.template.json @@ -1,5 +1,5 @@ { - "app": "npx ts-node --prefer-ts-exts bin/%name%.ts", + "app": "npx tsx bin/%name%.ts", "watch": { "include": ["**"], "exclude": [ From 6e076ccf0a3188af05178d741674010e25e201dc Mon Sep 17 00:00:00 2001 From: Pavi <13897936+pavinthan@users.noreply.github.com> Date: Sat, 25 May 2024 21:11:38 +0800 Subject: [PATCH 2/2] Replace ts-node with tsx Compiler powered by esbuild for fast TypeScript compilation --- .../lib/init-templates/sample-app/typescript/cdk.template.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk/lib/init-templates/sample-app/typescript/cdk.template.json b/packages/aws-cdk/lib/init-templates/sample-app/typescript/cdk.template.json index e9b5bea306944..56015ef046a49 100644 --- a/packages/aws-cdk/lib/init-templates/sample-app/typescript/cdk.template.json +++ b/packages/aws-cdk/lib/init-templates/sample-app/typescript/cdk.template.json @@ -1,5 +1,5 @@ { - "app": "npx ts-node --prefer-ts-exts bin/%name%.ts", + "app": "npx tsx bin/%name%.ts", "watch": { "include": ["**"], "exclude": [