Skip to content

Commit

Permalink
build: initial working build setup
Browse files Browse the repository at this point in the history
Changed from ts-node to node with ts-node/esm as the loader. There is a
bug with ts-node that breaks things when using ESM style modules only.
see: TypeStrong/ts-node#2100
  • Loading branch information
lassidevs committed Sep 8, 2024
1 parent e0ab15f commit 8e0346a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cdk.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"app": "npx ts-node --prefer-ts-exts bin/helloer.ts",
"app": "node --loader ts-node/esm --experimental-specifier-resolution=node src/bin/helloer.ts",
"watch": {
"include": [
"**"
],
"include": ["**"],
"exclude": [
"README.md",
"cdk*.json",
Expand All @@ -19,10 +17,7 @@
"context": {
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
"@aws-cdk/core:checkSecretUsage": true,
"@aws-cdk/core:target-partitions": [
"aws",
"aws-cn"
],
"@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
Expand Down

0 comments on commit 8e0346a

Please sign in to comment.