Skip to content

Commit 8e0346a

Browse files
committed
build: initial working build setup
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
1 parent e0ab15f commit 8e0346a

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

cdk.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
2-
"app": "npx ts-node --prefer-ts-exts bin/helloer.ts",
2+
"app": "node --loader ts-node/esm --experimental-specifier-resolution=node src/bin/helloer.ts",
33
"watch": {
4-
"include": [
5-
"**"
6-
],
4+
"include": ["**"],
75
"exclude": [
86
"README.md",
97
"cdk*.json",
@@ -19,10 +17,7 @@
1917
"context": {
2018
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
2119
"@aws-cdk/core:checkSecretUsage": true,
22-
"@aws-cdk/core:target-partitions": [
23-
"aws",
24-
"aws-cn"
25-
],
20+
"@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
2621
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
2722
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
2823
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,

0 commit comments

Comments
 (0)