@mrgrain/cdk-esbuild 4.2.4 → 5.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +590 -994
- package/README.md +28 -22
- package/VERSIONS.md +18 -1
- package/lib/asset.d.ts +8 -43
- package/lib/asset.js +12 -36
- package/lib/bundler.d.ts +1 -1
- package/lib/bundler.js +10 -10
- package/lib/code.d.ts +16 -103
- package/lib/code.js +11 -107
- package/lib/esbuild-types.d.ts +11 -29
- package/lib/esbuild-types.js +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +2 -6
- package/lib/inline-code.js +5 -5
- package/lib/private/dynamic-package.js +15 -15
- package/lib/private/esbuild-source.js +3 -3
- package/lib/provider.js +7 -7
- package/lib/source.d.ts +6 -72
- package/lib/source.js +8 -78
- package/package.json +23 -19
package/.jsii
CHANGED
|
@@ -8,10 +8,88 @@
|
|
|
8
8
|
"url": "https://moritzkornher.de"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.51.0",
|
|
12
12
|
"constructs": "^10.0.5"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
15
|
+
"@aws-cdk/asset-awscli-v1": {
|
|
16
|
+
"targets": {
|
|
17
|
+
"dotnet": {
|
|
18
|
+
"namespace": "Amazon.CDK.Asset.AwsCliV1",
|
|
19
|
+
"packageId": "Amazon.CDK.Asset.AwsCliV1"
|
|
20
|
+
},
|
|
21
|
+
"go": {
|
|
22
|
+
"moduleName": "github.com/cdklabs/awscdk-asset-awscli-go",
|
|
23
|
+
"packageName": "awscliv1"
|
|
24
|
+
},
|
|
25
|
+
"java": {
|
|
26
|
+
"maven": {
|
|
27
|
+
"artifactId": "cdk-asset-awscli-v1",
|
|
28
|
+
"groupId": "software.amazon.awscdk"
|
|
29
|
+
},
|
|
30
|
+
"package": "software.amazon.awscdk.cdk.asset.awscli.v1"
|
|
31
|
+
},
|
|
32
|
+
"js": {
|
|
33
|
+
"npm": "@aws-cdk/asset-awscli-v1"
|
|
34
|
+
},
|
|
35
|
+
"python": {
|
|
36
|
+
"distName": "aws-cdk.asset-awscli-v1",
|
|
37
|
+
"module": "aws_cdk.asset_awscli_v1"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"@aws-cdk/asset-kubectl-v20": {
|
|
42
|
+
"targets": {
|
|
43
|
+
"dotnet": {
|
|
44
|
+
"namespace": "Amazon.CDK.Asset.KubectlV20",
|
|
45
|
+
"packageId": "Amazon.CDK.Asset.KubectlV20"
|
|
46
|
+
},
|
|
47
|
+
"go": {
|
|
48
|
+
"moduleName": "github.com/cdklabs/awscdk-asset-kubectl-go",
|
|
49
|
+
"packageName": "kubectlv20"
|
|
50
|
+
},
|
|
51
|
+
"java": {
|
|
52
|
+
"maven": {
|
|
53
|
+
"artifactId": "cdk-asset-kubectl-v20",
|
|
54
|
+
"groupId": "software.amazon.awscdk"
|
|
55
|
+
},
|
|
56
|
+
"package": "software.amazon.awscdk.cdk.asset.kubectl.v20"
|
|
57
|
+
},
|
|
58
|
+
"js": {
|
|
59
|
+
"npm": "@aws-cdk/asset-kubectl-v20"
|
|
60
|
+
},
|
|
61
|
+
"python": {
|
|
62
|
+
"distName": "aws-cdk.asset-kubectl-v20",
|
|
63
|
+
"module": "aws_cdk.asset_kubectl_v20"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"@aws-cdk/asset-node-proxy-agent-v5": {
|
|
68
|
+
"targets": {
|
|
69
|
+
"dotnet": {
|
|
70
|
+
"namespace": "Amazon.CDK.Asset.NodeProxyAgentV5",
|
|
71
|
+
"packageId": "Amazon.CDK.Asset.NodeProxyAgentV5"
|
|
72
|
+
},
|
|
73
|
+
"go": {
|
|
74
|
+
"moduleName": "github.com/cdklabs/awscdk-asset-node-proxy-agent-go",
|
|
75
|
+
"packageName": "nodeproxyagentv5"
|
|
76
|
+
},
|
|
77
|
+
"java": {
|
|
78
|
+
"maven": {
|
|
79
|
+
"artifactId": "cdk-asset-node-proxy-agent-v5",
|
|
80
|
+
"groupId": "software.amazon.awscdk"
|
|
81
|
+
},
|
|
82
|
+
"package": "software.amazon.awscdk.cdk.asset.node.proxy.agent.v5"
|
|
83
|
+
},
|
|
84
|
+
"js": {
|
|
85
|
+
"npm": "@aws-cdk/asset-node-proxy-agent-v5"
|
|
86
|
+
},
|
|
87
|
+
"python": {
|
|
88
|
+
"distName": "aws-cdk.asset-node-proxy-agent-v5",
|
|
89
|
+
"module": "aws_cdk.asset_node_proxy_agent_v5"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
15
93
|
"aws-cdk-lib": {
|
|
16
94
|
"submodules": {
|
|
17
95
|
"aws-cdk-lib.alexa_ask": {
|
|
@@ -378,6 +456,19 @@
|
|
|
378
456
|
}
|
|
379
457
|
}
|
|
380
458
|
},
|
|
459
|
+
"aws-cdk-lib.aws_billingconductor": {
|
|
460
|
+
"targets": {
|
|
461
|
+
"dotnet": {
|
|
462
|
+
"namespace": "Amazon.CDK.AWS.BillingConductor"
|
|
463
|
+
},
|
|
464
|
+
"java": {
|
|
465
|
+
"package": "software.amazon.awscdk.services.billingconductor"
|
|
466
|
+
},
|
|
467
|
+
"python": {
|
|
468
|
+
"module": "aws_cdk.aws_billingconductor"
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
381
472
|
"aws-cdk-lib.aws_budgets": {
|
|
382
473
|
"targets": {
|
|
383
474
|
"dotnet": {
|
|
@@ -717,6 +808,32 @@
|
|
|
717
808
|
}
|
|
718
809
|
}
|
|
719
810
|
},
|
|
811
|
+
"aws-cdk-lib.aws_connectcampaigns": {
|
|
812
|
+
"targets": {
|
|
813
|
+
"dotnet": {
|
|
814
|
+
"namespace": "Amazon.CDK.AWS.ConnectCampaigns"
|
|
815
|
+
},
|
|
816
|
+
"java": {
|
|
817
|
+
"package": "software.amazon.awscdk.services.connectcampaigns"
|
|
818
|
+
},
|
|
819
|
+
"python": {
|
|
820
|
+
"module": "aws_cdk.aws_connectcampaigns"
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
"aws-cdk-lib.aws_controltower": {
|
|
825
|
+
"targets": {
|
|
826
|
+
"dotnet": {
|
|
827
|
+
"namespace": "Amazon.CDK.AWS.ControlTower"
|
|
828
|
+
},
|
|
829
|
+
"java": {
|
|
830
|
+
"package": "software.amazon.awscdk.services.controltower"
|
|
831
|
+
},
|
|
832
|
+
"python": {
|
|
833
|
+
"module": "aws_cdk.aws_controltower"
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
},
|
|
720
837
|
"aws-cdk-lib.aws_cur": {
|
|
721
838
|
"targets": {
|
|
722
839
|
"dotnet": {
|
|
@@ -1094,6 +1211,19 @@
|
|
|
1094
1211
|
}
|
|
1095
1212
|
}
|
|
1096
1213
|
},
|
|
1214
|
+
"aws-cdk-lib.aws_emrserverless": {
|
|
1215
|
+
"targets": {
|
|
1216
|
+
"dotnet": {
|
|
1217
|
+
"namespace": "Amazon.CDK.AWS.EMRServerless"
|
|
1218
|
+
},
|
|
1219
|
+
"java": {
|
|
1220
|
+
"package": "software.amazon.awscdk.services.emrserverless"
|
|
1221
|
+
},
|
|
1222
|
+
"python": {
|
|
1223
|
+
"module": "aws_cdk.aws_emrserverless"
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1097
1227
|
"aws-cdk-lib.aws_events": {
|
|
1098
1228
|
"targets": {
|
|
1099
1229
|
"dotnet": {
|
|
@@ -1354,6 +1484,19 @@
|
|
|
1354
1484
|
}
|
|
1355
1485
|
}
|
|
1356
1486
|
},
|
|
1487
|
+
"aws-cdk-lib.aws_identitystore": {
|
|
1488
|
+
"targets": {
|
|
1489
|
+
"dotnet": {
|
|
1490
|
+
"namespace": "Amazon.CDK.AWS.IdentityStore"
|
|
1491
|
+
},
|
|
1492
|
+
"java": {
|
|
1493
|
+
"package": "software.amazon.awscdk.services.identitystore"
|
|
1494
|
+
},
|
|
1495
|
+
"python": {
|
|
1496
|
+
"module": "aws_cdk.aws_identitystore"
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1357
1500
|
"aws-cdk-lib.aws_imagebuilder": {
|
|
1358
1501
|
"targets": {
|
|
1359
1502
|
"dotnet": {
|
|
@@ -1471,6 +1614,19 @@
|
|
|
1471
1614
|
}
|
|
1472
1615
|
}
|
|
1473
1616
|
},
|
|
1617
|
+
"aws-cdk-lib.aws_iotfleetwise": {
|
|
1618
|
+
"targets": {
|
|
1619
|
+
"dotnet": {
|
|
1620
|
+
"namespace": "Amazon.CDK.AWS.IoTFleetWise"
|
|
1621
|
+
},
|
|
1622
|
+
"java": {
|
|
1623
|
+
"package": "software.amazon.awscdk.services.iotfleetwise"
|
|
1624
|
+
},
|
|
1625
|
+
"python": {
|
|
1626
|
+
"module": "aws_cdk.aws_iotfleetwise"
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1474
1630
|
"aws-cdk-lib.aws_iotsitewise": {
|
|
1475
1631
|
"targets": {
|
|
1476
1632
|
"dotnet": {
|
|
@@ -1497,6 +1653,19 @@
|
|
|
1497
1653
|
}
|
|
1498
1654
|
}
|
|
1499
1655
|
},
|
|
1656
|
+
"aws-cdk-lib.aws_iottwinmaker": {
|
|
1657
|
+
"targets": {
|
|
1658
|
+
"dotnet": {
|
|
1659
|
+
"namespace": "Amazon.CDK.AWS.IoTTwinMaker"
|
|
1660
|
+
},
|
|
1661
|
+
"java": {
|
|
1662
|
+
"package": "software.amazon.awscdk.services.iottwinmaker"
|
|
1663
|
+
},
|
|
1664
|
+
"python": {
|
|
1665
|
+
"module": "aws_cdk.aws_iottwinmaker"
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
},
|
|
1500
1669
|
"aws-cdk-lib.aws_iotwireless": {
|
|
1501
1670
|
"targets": {
|
|
1502
1671
|
"dotnet": {
|
|
@@ -1809,6 +1978,19 @@
|
|
|
1809
1978
|
}
|
|
1810
1979
|
}
|
|
1811
1980
|
},
|
|
1981
|
+
"aws-cdk-lib.aws_m2": {
|
|
1982
|
+
"targets": {
|
|
1983
|
+
"dotnet": {
|
|
1984
|
+
"namespace": "Amazon.CDK.AWS.M2"
|
|
1985
|
+
},
|
|
1986
|
+
"java": {
|
|
1987
|
+
"package": "software.amazon.awscdk.services.m2"
|
|
1988
|
+
},
|
|
1989
|
+
"python": {
|
|
1990
|
+
"module": "aws_cdk.aws_m2"
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
},
|
|
1812
1994
|
"aws-cdk-lib.aws_macie": {
|
|
1813
1995
|
"targets": {
|
|
1814
1996
|
"dotnet": {
|
|
@@ -1900,6 +2082,19 @@
|
|
|
1900
2082
|
}
|
|
1901
2083
|
}
|
|
1902
2084
|
},
|
|
2085
|
+
"aws-cdk-lib.aws_mediatailor": {
|
|
2086
|
+
"targets": {
|
|
2087
|
+
"dotnet": {
|
|
2088
|
+
"namespace": "Amazon.CDK.AWS.MediaTailor"
|
|
2089
|
+
},
|
|
2090
|
+
"java": {
|
|
2091
|
+
"package": "software.amazon.awscdk.services.mediatailor"
|
|
2092
|
+
},
|
|
2093
|
+
"python": {
|
|
2094
|
+
"module": "aws_cdk.aws_mediatailor"
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
},
|
|
1903
2098
|
"aws-cdk-lib.aws_memorydb": {
|
|
1904
2099
|
"targets": {
|
|
1905
2100
|
"dotnet": {
|
|
@@ -2030,6 +2225,19 @@
|
|
|
2030
2225
|
}
|
|
2031
2226
|
}
|
|
2032
2227
|
},
|
|
2228
|
+
"aws-cdk-lib.aws_organizations": {
|
|
2229
|
+
"targets": {
|
|
2230
|
+
"dotnet": {
|
|
2231
|
+
"namespace": "Amazon.CDK.AWS.Organizations"
|
|
2232
|
+
},
|
|
2233
|
+
"java": {
|
|
2234
|
+
"package": "software.amazon.awscdk.services.organizations"
|
|
2235
|
+
},
|
|
2236
|
+
"python": {
|
|
2237
|
+
"module": "aws_cdk.aws_organizations"
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
},
|
|
2033
2241
|
"aws-cdk-lib.aws_panorama": {
|
|
2034
2242
|
"targets": {
|
|
2035
2243
|
"dotnet": {
|
|
@@ -2043,6 +2251,19 @@
|
|
|
2043
2251
|
}
|
|
2044
2252
|
}
|
|
2045
2253
|
},
|
|
2254
|
+
"aws-cdk-lib.aws_personalize": {
|
|
2255
|
+
"targets": {
|
|
2256
|
+
"dotnet": {
|
|
2257
|
+
"namespace": "Amazon.CDK.AWS.Personalize"
|
|
2258
|
+
},
|
|
2259
|
+
"java": {
|
|
2260
|
+
"package": "software.amazon.awscdk.services.personalize"
|
|
2261
|
+
},
|
|
2262
|
+
"python": {
|
|
2263
|
+
"module": "aws_cdk.aws_personalize"
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2046
2267
|
"aws-cdk-lib.aws_pinpoint": {
|
|
2047
2268
|
"targets": {
|
|
2048
2269
|
"dotnet": {
|
|
@@ -2134,6 +2355,19 @@
|
|
|
2134
2355
|
}
|
|
2135
2356
|
}
|
|
2136
2357
|
},
|
|
2358
|
+
"aws-cdk-lib.aws_redshiftserverless": {
|
|
2359
|
+
"targets": {
|
|
2360
|
+
"dotnet": {
|
|
2361
|
+
"namespace": "Amazon.CDK.AWS.RedshiftServerless"
|
|
2362
|
+
},
|
|
2363
|
+
"java": {
|
|
2364
|
+
"package": "software.amazon.awscdk.services.redshiftserverless"
|
|
2365
|
+
},
|
|
2366
|
+
"python": {
|
|
2367
|
+
"module": "aws_cdk.aws_redshiftserverless"
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
},
|
|
2137
2371
|
"aws-cdk-lib.aws_refactorspaces": {
|
|
2138
2372
|
"targets": {
|
|
2139
2373
|
"dotnet": {
|
|
@@ -2173,6 +2407,19 @@
|
|
|
2173
2407
|
}
|
|
2174
2408
|
}
|
|
2175
2409
|
},
|
|
2410
|
+
"aws-cdk-lib.aws_resourceexplorer2": {
|
|
2411
|
+
"targets": {
|
|
2412
|
+
"dotnet": {
|
|
2413
|
+
"namespace": "Amazon.CDK.AWS.ResourceExplorer2"
|
|
2414
|
+
},
|
|
2415
|
+
"java": {
|
|
2416
|
+
"package": "software.amazon.awscdk.services.resourceexplorer2"
|
|
2417
|
+
},
|
|
2418
|
+
"python": {
|
|
2419
|
+
"module": "aws_cdk.aws_resourceexplorer2"
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2176
2423
|
"aws-cdk-lib.aws_resourcegroups": {
|
|
2177
2424
|
"targets": {
|
|
2178
2425
|
"dotnet": {
|
|
@@ -2199,6 +2446,19 @@
|
|
|
2199
2446
|
}
|
|
2200
2447
|
}
|
|
2201
2448
|
},
|
|
2449
|
+
"aws-cdk-lib.aws_rolesanywhere": {
|
|
2450
|
+
"targets": {
|
|
2451
|
+
"dotnet": {
|
|
2452
|
+
"namespace": "Amazon.CDK.AWS.RolesAnywhere"
|
|
2453
|
+
},
|
|
2454
|
+
"java": {
|
|
2455
|
+
"package": "software.amazon.awscdk.services.rolesanywhere"
|
|
2456
|
+
},
|
|
2457
|
+
"python": {
|
|
2458
|
+
"module": "aws_cdk.aws_rolesanywhere"
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
},
|
|
2202
2462
|
"aws-cdk-lib.aws_route53": {
|
|
2203
2463
|
"targets": {
|
|
2204
2464
|
"dotnet": {
|
|
@@ -2394,6 +2654,19 @@
|
|
|
2394
2654
|
}
|
|
2395
2655
|
}
|
|
2396
2656
|
},
|
|
2657
|
+
"aws-cdk-lib.aws_scheduler": {
|
|
2658
|
+
"targets": {
|
|
2659
|
+
"dotnet": {
|
|
2660
|
+
"namespace": "Amazon.CDK.AWS.Scheduler"
|
|
2661
|
+
},
|
|
2662
|
+
"java": {
|
|
2663
|
+
"package": "software.amazon.awscdk.services.scheduler"
|
|
2664
|
+
},
|
|
2665
|
+
"python": {
|
|
2666
|
+
"module": "aws_cdk.aws_scheduler"
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
},
|
|
2397
2670
|
"aws-cdk-lib.aws_sdb": {
|
|
2398
2671
|
"targets": {
|
|
2399
2672
|
"dotnet": {
|
|
@@ -2628,6 +2901,19 @@
|
|
|
2628
2901
|
}
|
|
2629
2902
|
}
|
|
2630
2903
|
},
|
|
2904
|
+
"aws-cdk-lib.aws_supportapp": {
|
|
2905
|
+
"targets": {
|
|
2906
|
+
"dotnet": {
|
|
2907
|
+
"namespace": "Amazon.CDK.AWS.SupportApp"
|
|
2908
|
+
},
|
|
2909
|
+
"java": {
|
|
2910
|
+
"package": "software.amazon.awscdk.services.supportapp"
|
|
2911
|
+
},
|
|
2912
|
+
"python": {
|
|
2913
|
+
"module": "aws_cdk.aws_supportapp"
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
},
|
|
2631
2917
|
"aws-cdk-lib.aws_synthetics": {
|
|
2632
2918
|
"targets": {
|
|
2633
2919
|
"dotnet": {
|
|
@@ -2667,6 +2953,19 @@
|
|
|
2667
2953
|
}
|
|
2668
2954
|
}
|
|
2669
2955
|
},
|
|
2956
|
+
"aws-cdk-lib.aws_voiceid": {
|
|
2957
|
+
"targets": {
|
|
2958
|
+
"dotnet": {
|
|
2959
|
+
"namespace": "Amazon.CDK.AWS.VoiceID"
|
|
2960
|
+
},
|
|
2961
|
+
"java": {
|
|
2962
|
+
"package": "software.amazon.awscdk.services.voiceid"
|
|
2963
|
+
},
|
|
2964
|
+
"python": {
|
|
2965
|
+
"module": "aws_cdk.aws_voiceid"
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
},
|
|
2670
2969
|
"aws-cdk-lib.aws_waf": {
|
|
2671
2970
|
"targets": {
|
|
2672
2971
|
"dotnet": {
|
|
@@ -2861,11 +3160,24 @@
|
|
|
2861
3160
|
"module": "aws_cdk.region_info"
|
|
2862
3161
|
}
|
|
2863
3162
|
}
|
|
3163
|
+
},
|
|
3164
|
+
"aws-cdk-lib.triggers": {
|
|
3165
|
+
"targets": {
|
|
3166
|
+
"dotnet": {
|
|
3167
|
+
"namespace": "Amazon.CDK.Triggers"
|
|
3168
|
+
},
|
|
3169
|
+
"java": {
|
|
3170
|
+
"package": "software.amazon.awscdk.triggers"
|
|
3171
|
+
},
|
|
3172
|
+
"python": {
|
|
3173
|
+
"module": "aws_cdk.triggers"
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
2864
3176
|
}
|
|
2865
3177
|
},
|
|
2866
3178
|
"targets": {
|
|
2867
3179
|
"dotnet": {
|
|
2868
|
-
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/
|
|
3180
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png",
|
|
2869
3181
|
"namespace": "Amazon.CDK",
|
|
2870
3182
|
"packageId": "Amazon.CDK.Lib"
|
|
2871
3183
|
},
|
|
@@ -2920,7 +3232,7 @@
|
|
|
2920
3232
|
"stability": "stable"
|
|
2921
3233
|
},
|
|
2922
3234
|
"homepage": "https://github.com/mrgrain/cdk-esbuild",
|
|
2923
|
-
"jsiiVersion": "1.
|
|
3235
|
+
"jsiiVersion": "5.1.9 (build fa65a10)",
|
|
2924
3236
|
"keywords": [
|
|
2925
3237
|
"aws-cdk",
|
|
2926
3238
|
"bundler",
|
|
@@ -2943,7 +3255,7 @@
|
|
|
2943
3255
|
},
|
|
2944
3256
|
"name": "@mrgrain/cdk-esbuild",
|
|
2945
3257
|
"readme": {
|
|
2946
|
-
"markdown": "<img src=\"https://raw.githubusercontent.com/mrgrain/cdk-esbuild/main/images/wordmark.svg\" alt=\"cdk-esbuild\">\n\n_CDK constructs for [esbuild](https://github.com/evanw/esbuild), an extremely fast JavaScript bundler_\n\n[Getting started](#getting-started) |\n[Documentation](#documentation) | [API Reference](#api-reference) | [Python, .NET, & Go](#python-net-go) | [FAQ](#faq)\n\n[](https://constructs.dev/packages/@mrgrain/cdk-esbuild)\n\n## Why?\n\n_esbuild_ is an extremely fast bundler and minifier for TypeScript and JavaScript.\nThis package makes _esbuild_ available to deploy AWS Lambda Functions, static websites or publish assets for further usage.\n\nAWS CDK [supports _esbuild_ for AWS Lambda Functions](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html), but the implementation cannot be used with other Constructs and doesn't expose all of _esbuild_'s API.\n\n## Getting started\n\nInstall `cdk-esbuild` for Node.js using your favorite package manager:\n\n```sh\n# npm\nnpm install @mrgrain/cdk-esbuild@4\n# Yarn\nyarn add @mrgrain/cdk-esbuild@4\n# pnpm\npnpm add @mrgrain/cdk-esbuild@4\n```\n\nFor Python, .NET or Go, use these commands:\n\n```sh\n# Python\npip install mrgrain.cdk-esbuild\n\n# .NET\ndotnet add package Mrgrain.CdkEsbuild\n\n# Go\ngo get github.com/mrgrain/cdk-esbuild-go/cdkesbuild/v4\n```\n\n### AWS Lambda: Serverless function\n\n> 💡 See [Lambda (TypeScript)](examples/typescript/lambda) and [Lambda (Python)](examples/typescript/lambda) for complete working examples of a how to deploy an AWS Lambda Function.\n\nUse `TypeScriptCode` as the `code` of a [lambda function](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html#code):\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/handler.ts\");\n\nconst fn = new lambda.Function(stack, \"MyFunction\", {\n runtime: lambda.Runtime.NODEJS_18_X,\n handler: \"index.handler\",\n code: bundledCode,\n});\n```\n\n### AWS S3: Static Website\n\n> 💡 See [React App (TypeScript)](examples/typescript/website) for a complete working example of a how to deploy a React app to S3.\n\nUse `TypeScriptSource` as one of the `sources` of a [static website deployment](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html#roadmap):\n\n```ts\nconst websiteBundle = new TypeScriptSource(\"src/index.tsx\");\n\nconst websiteBucket = new s3.Bucket(stack, \"WebsiteBucket\", {\n autoDeleteObjects: true,\n publicReadAccess: true,\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n websiteIndexDocument: \"index.html\",\n});\n\nnew s3deploy.BucketDeployment(stack, \"DeployWebsite\", {\n destinationBucket: websiteBucket,\n sources: [websiteBundle],\n});\n```\n\n### Amazon CloudWatch Synthetics: Canary monitoring\n\n> 💡 See [Monitored Website (TypeScript)](examples/typescript/website) for a complete working example of a deployed and monitored website.\n\nSynthetics runs a canary to produce traffic to an application for monitoring purposes. Use `TypeScriptCode` as the `code` of a Canary test:\n\n> ℹ️ This feature depends on `@aws-cdk/aws-synthetics-alpha` which is in developer preview.\n> Please install the package using the respective tool of your language.\n> You may need to update your source code when upgrading to a newer version of this alpha package.\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/canary.ts\", {\n buildOptions: {\n outdir: \"nodejs/node_modules\", // This is required by AWS Synthetics\n },\n});\n\nconst canary = new synthetics.Canary(stack, \"MyCanary\", {\n runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_2,\n test: synthetics.Test.custom({\n code: bundledCode,\n handler: \"index.handler\",\n }),\n});\n```\n\n## Documentation\n\nThe package exports various different constructs for use with AWS CDK features. The guiding design principal for this package is _\"extend, don't replace\"_. Expect constructs that you can provide as props, not complete replacements.\n\nFor use in **Lambda Functions** and **Synthetic Canaries**, the following classes implement `lambda.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Code.html)) and `synthetics.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-synthetics-alpha.Code.html)):\n\n- `TypeScriptCode` & `JavaScriptCode`\n\nInline code is only supported by **Lambda**:\n\n- `InlineTypeScriptCode` & `InlineJavaScriptCode`\n\nFor use with **S3 bucket deployments**, classes implementing `s3deploy.ISource` ([reference](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html)):\n\n- `TypeScriptSource` & `JavaScriptSource`\n\n> _Code and Source constructs seamlessly plug-in to other high-level CDK constructs. They share the same set of parameters, props and build options._\n\nThe following classes power the other features. You normally won't have to use them, but they are there if you need them:\n\n- `TypeScriptAsset` & `JavaScriptAsset` implements `s3.Asset` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)) \\\n creates an asset uploaded to S3 which can be referenced by other constructs\n\n- `EsbuildBundler` implements `core.BundlingOptions` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.BundlingOptions.html)) \\\n provides an interface for a _esbuild_ bundler wherever needed\n\n- `EsbuildProvider` implements `IBuildProvider` and `ITransformProvider` \\\n provides the default _esbuild_ API implementation and can be replaced with a custom implementation\n\n### [API Reference](API.md)\n\nAuto-generated reference for Constructs, Classes and Structs.\nThis information is also available as part of your IDE's code completion.\n\n### Python, .NET, Go\n\n_Esbuild_ requires a platform and architecture specific binary and currently has to be installed with a Node.js package manager like npm.\n\nWhen using `cdk-esbuild` with Python, .NET or Go, the package will automatically detect local and global installations of the _esbuild_ npm package.\nIf none can be found, it will fall back to dynamically installing a copy into a temporary location.\nThe exact algorithm of this mechanism must be treated as an implementation detail and should not be relied on.\nIt can however be configured to a certain extent.\nSee the examples below for more details.\n\nThis \"best effort\" approach makes it easy to get started.\nBut is not always desirable, for example in environments with limited network access or when guaranteed repeatability of builds is a concern.\nYou have several options to opt-out of this behavior.\n\n#### Provide a controlled installation of _esbuild_\n\nThe first step is to install a version of _esbuild_ that is controlled by you.\n\nI **strongly recommend** to install _esbuild_ as a local package.\nThe easiest approach is to manage an additional Node.js project at the root of your AWS CDK project.\n_esbuild_ can then be added to the `package.json` file and it is your responsibility to ensure required setup steps are taken in all environments like development machines and CI/CD systems.\n\nInstead of installing the _esbuild_ package in a local project, it can also be **installed globally** with `npm install -g esbuild` or a similar command.\nThis approach might be preferred if a build container is prepared ahead of time, thus avoiding repeated package installation.\n\n#### Change the automatic package detection\n\nThe second step is to make `cdk-esbuild` aware of your chosen install location.\nThis step is optional, but it's a good idea to have the location or at least the method explicitly defined.\n\nTo do this, you can set the `esbuildModulePath` prop on a `EsbuildProvider`.\nEither pass a known, absolute or relative path as value, or use the `EsbuildSource` helper to set the detection method.\nPlease refer to the [`EsbuildSource`](API.md#esbuildsource) reference for a complete list of available methods.\n\n```ts\n// Use the standard Node.js algorithm to detect a locally installed package\nnew EsbuildProvider({\n esbuildModulePath: EsbuildSource.nodeJs(),\n});\n\n// Provide an explicit path\nnew EsbuildProvider({\n esbuildModulePath: '/home/user/node_modules/esbuild/lib/main.js',\n});\n```\n\nAs a no-code approach, the `CDK_ESBUILD_MODULE_PATH` environment variable can be set in the same way.\nAn advantage of this is that the path can easily be changed for different systems.\nSetting the env variable can be used with any installation approach, but is typically paired with a global installation of the _esbuild_ package.\nNote that `esbuildModulePath` takes precedence.\n\n#### Override the default detection method\n\nFor an AWS CDK app with many instances of `TypeScriptCode` etc. it would be annoying to change the above for every single one of them.\nLuckily, the default can be changed for all usages per app:\n\n```ts\nconst customModule = new EsbuildProvider({\n esbuildModulePath: EsbuildSource.globalPaths(),\n});\nEsbuildProvider.overrideDefaultProvider(customModule);\n```\n\n### Customizing the Esbuild API\n\nThis package uses the _esbuild_ JavaScript API.\nIn most situations the default API configuration will be suitable.\nBut sometimes it is required to configure _esbuild_ differently or even provide a custom implementation.\nCommon reasons for this are:\n\n- Using a pre-installed version of _esbuild_ with Python, .NET or Go\n- If features not supported by the synchronous API are required, e.g. support for plugins\n- If the default version constraints for _esbuild_ are not suitable\n- To use a version of esbuild that is installed by any other means than `npm`, including Docker\n\nFor these scenarios, this package offers customization options and an interface to provide a custom implementation:\n\n```ts\ndeclare const myCustomBuildProvider: IBuildProvider;\n\nnew TypeScriptCode(\"src/handler.ts\", {\n buildProvider: myCustomBuildProvider,\n});\n\n\ndeclare const myCustomTransformProvider: ITransformProvider;\n\nnew InlineTypeScriptCode(\"let x: number = 1\", {\n transformProvider: myCustomTransformProvider,\n});\n```\n\n#### Esbuild binary path\n\nIt is possible to override the binary used by _esbuild_ by setting a property on `EsbuildProvider`.\nThis is the same as setting the `ESBUILD_BINARY_PATH` environment variable.\nDefining the `esbuildBinaryPath` prop takes precedence.\n\n```ts\nconst buildProvider = new EsbuildProvider({\n esbuildBinaryPath: \"path/to/esbuild/binary\",\n});\n\n// This will use a different esbuild binary\nnew TypeScriptCode(\"src/handler.ts\", { buildProvider });\n```\n\n#### Esbuild module path\n\nThe Node.js module discovery algorithm will normally be used to find the _esbuild_ package.\nIt can be useful to use specify a different module path, for example if a globally installed package should be used instead of a local version.\n\n```ts\nconst buildProvider = new EsbuildProvider({\n esbuildModulePath: \"/home/user/node_modules/esbuild/lib/main.js\",\n});\n\n// This will use a different esbuild module\nnew TypeScriptCode(\"src/handler.ts\", { buildProvider });\n```\n\nAlternatively supported by setting the `CDK_ESBUILD_MODULE_PATH` environment variable, which will apply to all uses.\nDefining the `esbuildModulePath` prop takes precedence.\n\nIf you are a Python, .NET or Go user, refer to the language specific guide for a more detailed explanation of this feature.\n\n#### Custom Build and Transform API implementations\n\n> 💡 See [esbuild plugins w/ TypeScript](examples/typescript/esbuild-with-plugins) for a complete working example of a custom Build API implementation.\n\nA custom implementation can be provided by implementing `IBuildProvider` or `ITransformProvider`:\n\n```ts\nclass CustomEsbuild implements IBuildProvider, ITransformProvider {\n buildSync(options: BuildOptions): void {\n // custom implementation goes here\n }\n\n transformSync(code: string, options?: TransformOptions): string {\n // custom implementation goes here, return transformed code\n return 'transformed code';\n }\n}\n\n// These will use the custom implementation\nnew TypeScriptCode(\"src/handler.ts\", {\n buildProvider: new CustomEsbuild(),\n});\nnew InlineTypeScriptCode(\"let x: number = 1\", {\n transformProvider: new CustomEsbuild(),\n});\n```\n\nInstead of _esbuild_, the custom methods will be invoked with all computed options.\nCustom implementations can amend, change or discard any of the options.\n\nThe `IBuildProvider` integration with CDK relies on the `outdir`/`outfile` values and it's usually required to use them unchanged.\n\n`ITransformProvider` must return the transformed code as a string.\n\nFailures and warnings should be printed to stderr and thrown as the respective _esbuild_ error.\n\n#### Overriding the default implementation providers\n\nThe default implementation can also be set for all usages of `TypeScriptCode` etc. in an AWS CDK app.\nYou can change the default for both APIs at once or set a different implementation for each of them.\n\n```ts\nconst myCustomEsbuildProvider = new MyCustomEsbuildProvider();\n\nEsbuildProvider.overrideDefaultProvider(myCustomEsbuildProvider);\nEsbuildProvider.overrideDefaultBuildProvider(myCustomEsbuildProvider);\nEsbuildProvider.overrideDefaultTransformationProvider(myCustomEsbuildProvider);\n\n// This will use the custom provider without the need to define it as a prop\nnew TypeScriptCode(\"src/handler.ts\");\n```\n\n### Roadmap & Contributions\n\n[The project's roadmap is available on GitHub.](https://github.com/users/mrgrain/projects/1/views/7)\n\nPlease submit feature requests as issues to the repository.\nAll contributions are welcome, no matter if they are for already planned or completely new features.\n\n## FAQ\n\n### Should I use this package in production?\n\nThis package is stable and ready to be used in production, as many do.\nHowever _esbuild_ has not yet released a version 1.0.0 and its API is still in active development.\nPlease read the guide on [esbuild's production readiness](https://esbuild.github.io/faq/#production-readiness).\n\nNote that _esbuild_ minor version upgrades are also introduced in **minor versions** of this package.\nSince _esbuild_ is pre v1, these versions typically introduce breaking changes and this package will inherit them.\nTo avoid this behavior, add the desired _esbuild_ version as a dependency to your package.\n\n### How do I upgrade from `cdk-esbuild` v3?\n\nPlease refer to the [v4 release notes](https://github.com/mrgrain/cdk-esbuild/releases/tag/v4.0.0) for a list of backwards incompatible changes and respective upgrade instructions.\n\n### [TS/JS] Why am I getting the error `Cannot find module 'esbuild'`?\n\nThis package depends on _esbuild_ as an optional dependencies. If optional dependencies are not installed automatically on your system (e.g. when using npm v4-6), install _esbuild_ explicitly:\n\n```console\nnpm install esbuild\n```\n\n### [TS/JS] How can I use a different version of _esbuild_?\n\nUse the [override](https://docs.npmjs.com/cli/v9/configuring-npm/package-json?v=true#overrides) instructions for your package manager to force a specific version, for example:\n\n```json\n{\n \"overrides\": {\n \"esbuild\": \"0.14.7\"\n }\n}\n```\n\nBuild and Transform interfaces are relatively stable across _esbuild_ versions.\nHowever if any incompatibilities occur, `buildOptions` / `transformOptions` can be cast to `any`:\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/handler.ts\", {\n buildOptions: {\n unsupportedOption: \"value\"\n } as any,\n});\n```\n\n### [Python/.NET/Go] How can I use a different version of _esbuild_?\n\nInstall the desired version of _esbuild_ locally or globally [as described in the documentation above](#python-net-go).\n\nBuild and Transform interfaces are relatively stable across _esbuild_ versions.\nHowever if any incompatibilities occur, use the appropriate language features to cast any incompatible `buildOptions` / `transformOptions` to the correct types.\n\n### Can I use this package in my published AWS CDK Construct?\n\nIt is possible to use `cdk-esbuild` in a published AWS CDK Construct library, but not recommended.\nAlways prefer to ship a compiled `.js` file or even bundle a zip archive in your package.\nFor AWS Lambda Functions, [projen provides an excellent solution](https://projen.io/awscdk.html#aws-lambda-functions).\n\nIf you do end up consuming `cdk-esbuild`, you will have to set `buildOptions.absWorkingDir`. The easiest way to do this, is to resolve the path based on the directory name of the calling file:\n\n```js\n// file: node_modules/construct-library/src/index.ts\nconst props = {\n buildOptions: {\n absWorkingDir: path.resolve(__dirname, \"..\"),\n // now: /user/local-app/node_modules/construct-library\n },\n};\n```\n\nThis will dynamically resolve to the correct path, wherever the package is installed. Please open an issue if you encounter any difficulties.\n\n### Can I use this package with AWS CDK v1?\n\nYes, the `2.x.x` line of `cdk-esbuild` is compatible with AWS CDK v1. You can find the [documentation for it on the v2 branch](https://github.com/mrgrain/cdk-esbuild/tree/v2).\n\nHowever, in line with AWS CDK v2, this version release now only receives security updates and critical bug fixes and support will fully end on June 1, 2023.\n"
|
|
3258
|
+
"markdown": "<img src=\"https://raw.githubusercontent.com/mrgrain/cdk-esbuild/main/images/wordmark.svg\" alt=\"cdk-esbuild\">\n\n_CDK constructs for [esbuild](https://github.com/evanw/esbuild), an extremely fast JavaScript bundler_\n\n[Getting started](#getting-started) |\n[Documentation](#documentation) | [API Reference](#api-reference) | [Python, .NET, & Go](#python-net-go) | [FAQ](#faq)\n\n[](https://constructs.dev/packages/@mrgrain/cdk-esbuild)\n\n## Why?\n\n_esbuild_ is an extremely fast bundler and minifier for TypeScript and JavaScript.\nThis package makes _esbuild_ available to deploy AWS Lambda Functions, static websites or publish assets for further usage.\n\nAWS CDK [supports _esbuild_ for AWS Lambda Functions](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html), but the implementation cannot be used with other Constructs and doesn't expose all of _esbuild_'s API.\n\n## Getting started\n\nInstall `cdk-esbuild` for Node.js using your favorite package manager:\n\n```sh\n# npm\nnpm install @mrgrain/cdk-esbuild@5\n# Yarn\nyarn add @mrgrain/cdk-esbuild@5\n# pnpm\npnpm add @mrgrain/cdk-esbuild@5\n```\n\nFor Python, .NET or Go, use these commands:\n\n```sh\n# Python\npip install mrgrain.cdk-esbuild\n\n# .NET\ndotnet add package Mrgrain.CdkEsbuild\n\n# Go\ngo get github.com/mrgrain/cdk-esbuild-go/cdkesbuild/v5\n```\n\n### AWS Lambda: Serverless function\n\n> 💡 See [Lambda (TypeScript)](examples/typescript/lambda) and [Lambda (Python)](examples/typescript/lambda) for working examples of a how to deploy an AWS Lambda Function.\n\nUse `TypeScriptCode` as the `code` of a [lambda function](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html#code):\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/handler.ts\");\n\nconst fn = new lambda.Function(stack, \"MyFunction\", {\n runtime: lambda.Runtime.NODEJS_18_X,\n handler: \"index.handler\",\n code: bundledCode,\n});\n```\n\n### AWS S3: Static Website\n\n> 💡 See [React App (TypeScript)](examples/typescript/website) for a working example of a how to deploy a React app to S3.\n\nUse `TypeScriptSource` as one of the `sources` of a [static website deployment](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html#roadmap):\n\n```ts\nconst websiteBundle = new TypeScriptSource(\"src/index.tsx\");\n\nconst websiteBucket = new s3.Bucket(stack, \"WebsiteBucket\", {\n autoDeleteObjects: true,\n publicReadAccess: true,\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n websiteIndexDocument: \"index.html\",\n});\n\nnew s3deploy.BucketDeployment(stack, \"DeployWebsite\", {\n destinationBucket: websiteBucket,\n sources: [websiteBundle],\n});\n```\n\n### Amazon CloudWatch Synthetics: Canary monitoring\n\n> 💡 See [Monitored Website (TypeScript)](examples/typescript/website) for a working example of a deployed and monitored website.\n\nSynthetics runs a canary to produce traffic to an application for monitoring purposes. Use `TypeScriptCode` as the `code` of a Canary test:\n\n> ℹ️ This feature depends on `@aws-cdk/aws-synthetics-alpha` which is in developer preview.\n> Please install the package using the respective tool of your language.\n> You may need to update your source code when upgrading to a newer version of this alpha package.\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/canary.ts\", {\n buildOptions: {\n outdir: \"nodejs/node_modules\", // This is required by AWS Synthetics\n },\n});\n\nconst canary = new synthetics.Canary(stack, \"MyCanary\", {\n runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_5_1,\n test: synthetics.Test.custom({\n code: bundledCode,\n handler: \"index.handler\",\n }),\n});\n```\n\n## Documentation\n\nThe package exports constructs for use with AWS CDK features.\nThe guiding design principal of this package is _\"extend, don't replace\"_.\nExpect constructs that you can provide as props, not complete replacements.\n\nFor use with **Lambda Functions** and **Synthetic Canaries**, implementing `lambda.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Code.html)) and `synthetics.Code` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-synthetics-alpha.Code.html)):\n\n- `TypeScriptCode`\n\nInline code is only supported by **Lambda**:\n\n- `InlineTypeScriptCode`\n\nFor use with **S3 bucket deployments**, implementing `s3deploy.ISource` ([reference](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-s3-deployment-readme.html)):\n\n- `TypeScriptSource`\n\n> _`Code` and `Source` constructs seamlessly plug-in to other high-level CDK constructs. They share the same set of parameters, props and build options._\n\nThe following classes power the other features. You normally won't have to use them, but they are there if you need them:\n\n- `TypeScriptAsset` implements `s3.Asset` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)) \\\n creates an asset uploaded to S3 which can be referenced by other constructs\n\n- `EsbuildBundler` implements `core.BundlingOptions` ([reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.BundlingOptions.html)) \\\n provides an interface for a _esbuild_ bundler wherever needed\n\n- `EsbuildProvider` implements `IBuildProvider` and `ITransformProvider` \\\n provides the default _esbuild_ API implementation and can be replaced with a custom implementation\n\n### [API Reference](API.md)\n\nAuto-generated reference for Constructs, Classes and Structs.\nThis information is also available as part of your IDE's code completion.\n\n### Python, .NET, Go\n\n_Esbuild_ requires a platform and architecture specific binary and currently has to be installed with a Node.js package manager like npm.\n\nWhen using `cdk-esbuild` with Python, .NET or Go, the package will automatically detect local and global installations of the _esbuild_ npm package.\nIf none can be found, it will fall back to dynamically installing a copy into a temporary location.\nThe exact algorithm of this mechanism must be treated as an implementation detail and should not be relied on.\nIt can however be configured to a certain extent.\nSee the examples below for more details.\n\nThis \"best effort\" approach makes it easy to get started.\nBut is not always desirable, for example in environments with limited network access or when guaranteed repeatability of builds is a concern.\nYou have several options to opt-out of this behavior.\n\n#### Provide a controlled installation of _esbuild_\n\nThe first step is to install a version of _esbuild_ that is controlled by you.\n\nI **strongly recommend** to install _esbuild_ as a local package.\nThe easiest approach is to manage an additional Node.js project at the root of your AWS CDK project.\n_esbuild_ can then be added to the `package.json` file and it is your responsibility to ensure required setup steps are taken in all environments like development machines and CI/CD systems.\n\nInstead of installing the _esbuild_ package in a local project, it can also be **installed globally** with `npm install -g esbuild` or a similar command.\nThis approach might be preferred if a build container is prepared ahead of time, thus avoiding repeated package installation.\n\n#### Change the automatic package detection\n\nThe second step is to make `cdk-esbuild` aware of your chosen install location.\nThis step is optional, but it's a good idea to have the location or at least the method explicitly defined.\n\nTo do this, you can set the `esbuildModulePath` prop on a `EsbuildProvider`.\nEither pass a known, absolute or relative path as value, or use the `EsbuildSource` helper to set the detection method.\nPlease refer to the [`EsbuildSource`](API.md#esbuildsource) reference for a complete list of available methods.\n\n```ts\n// Use the standard Node.js algorithm to detect a locally installed package\nnew EsbuildProvider({\n esbuildModulePath: EsbuildSource.nodeJs(),\n});\n\n// Provide an explicit path\nnew EsbuildProvider({\n esbuildModulePath: '/home/user/node_modules/esbuild/lib/main.js',\n});\n```\n\nAs a no-code approach, the `CDK_ESBUILD_MODULE_PATH` environment variable can be set in the same way.\nAn advantage of this is that the path can easily be changed for different systems.\nSetting the env variable can be used with any installation approach, but is typically paired with a global installation of the _esbuild_ package.\nNote that `esbuildModulePath` takes precedence.\n\n#### Override the default detection method\n\nFor an AWS CDK app with many instances of `TypeScriptCode` etc. it would be annoying to change the above for every single one of them.\nLuckily, the default can be changed for all usages per app:\n\n```ts\nconst customModule = new EsbuildProvider({\n esbuildModulePath: EsbuildSource.globalPaths(),\n});\nEsbuildProvider.overrideDefaultProvider(customModule);\n```\n\n### Customizing the Esbuild API\n\nThis package uses the _esbuild_ JavaScript API.\nIn most situations the default API configuration will be suitable.\nBut sometimes it is required to configure _esbuild_ differently or even provide a custom implementation.\nCommon reasons for this are:\n\n- Using a pre-installed version of _esbuild_ with Python, .NET or Go\n- If features not supported by the synchronous API are required, e.g. support for plugins\n- If the default version constraints for _esbuild_ are not suitable\n- To use a version of esbuild that is installed by any other means than `npm`, including Docker\n\nFor these scenarios, this package offers customization options and an interface to provide a custom implementation:\n\n```ts\ndeclare const myCustomBuildProvider: IBuildProvider;\n\nnew TypeScriptCode(\"src/handler.ts\", {\n buildProvider: myCustomBuildProvider,\n});\n\n\ndeclare const myCustomTransformProvider: ITransformProvider;\n\nnew InlineTypeScriptCode(\"let x: number = 1\", {\n transformProvider: myCustomTransformProvider,\n});\n```\n\n#### Esbuild binary path\n\nIt is possible to override the binary used by _esbuild_ by setting a property on `EsbuildProvider`.\nThis is the same as setting the `ESBUILD_BINARY_PATH` environment variable.\nDefining the `esbuildBinaryPath` prop takes precedence.\n\n```ts\nconst buildProvider = new EsbuildProvider({\n esbuildBinaryPath: \"path/to/esbuild/binary\",\n});\n\n// This will use a different esbuild binary\nnew TypeScriptCode(\"src/handler.ts\", { buildProvider });\n```\n\n#### Esbuild module path\n\nThe Node.js module discovery algorithm will normally be used to find the _esbuild_ package.\nIt can be useful to use specify a different module path, for example if a globally installed package should be used instead of a local version.\n\n```ts\nconst buildProvider = new EsbuildProvider({\n esbuildModulePath: \"/home/user/node_modules/esbuild/lib/main.js\",\n});\n\n// This will use a different esbuild module\nnew TypeScriptCode(\"src/handler.ts\", { buildProvider });\n```\n\nAlternatively supported by setting the `CDK_ESBUILD_MODULE_PATH` environment variable, which will apply to all uses.\nDefining the `esbuildModulePath` prop takes precedence.\n\nIf you are a Python, .NET or Go user, refer to the language specific guide for a more detailed explanation of this feature.\n\n#### Custom Build and Transform API implementations\n\n> 💡 See [esbuild plugins w/ TypeScript](examples/typescript/esbuild-with-plugins) for a working example of a custom Build API implementation.\n\nA custom implementation can be provided by implementing `IBuildProvider` or `ITransformProvider`:\n\n```ts\nclass CustomEsbuild implements IBuildProvider, ITransformProvider {\n buildSync(options: BuildOptions): void {\n // custom implementation goes here\n }\n\n transformSync(code: string, options?: TransformOptions): string {\n // custom implementation goes here, return transformed code\n return 'transformed code';\n }\n}\n\n// These will use the custom implementation\nnew TypeScriptCode(\"src/handler.ts\", {\n buildProvider: new CustomEsbuild(),\n});\nnew InlineTypeScriptCode(\"let x: number = 1\", {\n transformProvider: new CustomEsbuild(),\n});\n```\n\nInstead of _esbuild_, the custom methods will be invoked with all computed options.\nCustom implementations can amend, change or discard any of the options.\n\nThe `IBuildProvider` integration with CDK relies on the `outdir`/`outfile` values and it's usually required to use them unchanged.\n\n`ITransformProvider` must return the transformed code as a string.\n\nFailures and warnings should be printed to stderr and thrown as the respective _esbuild_ error.\n\n#### Overriding the default implementation providers\n\nThe default implementation can also be set for all usages of `TypeScriptCode` etc. in an AWS CDK app.\nYou can change the default for both APIs at once or set a different implementation for each of them.\n\n```ts\nconst myCustomEsbuildProvider = new MyCustomEsbuildProvider();\n\nEsbuildProvider.overrideDefaultProvider(myCustomEsbuildProvider);\nEsbuildProvider.overrideDefaultBuildProvider(myCustomEsbuildProvider);\nEsbuildProvider.overrideDefaultTransformationProvider(myCustomEsbuildProvider);\n\n// This will use the custom provider without the need to define it as a prop\nnew TypeScriptCode(\"src/handler.ts\");\n```\n\n### Roadmap & Contributions\n\n[The project's roadmap is available on GitHub.](https://github.com/users/mrgrain/projects/1/views/7)\n\nPlease submit feature requests as issues to the repository.\nAll contributions are welcome, no matter if they are for already planned or completely new features.\n\n## FAQ\n\n### Should I use this package in production?\n\nThis package is stable and ready to be used in production, as many do.\nHowever _esbuild_ has not yet released a version 1.0.0 and its API is still in active development.\nPlease read the guide on [esbuild's production readiness](https://esbuild.github.io/faq/#production-readiness).\n\nNote that _esbuild_ minor version upgrades are also introduced in **minor versions** of this package.\nSince _esbuild_ is pre v1, these versions typically introduce breaking changes and this package will inherit them.\nTo avoid this behavior, add the desired _esbuild_ version as a dependency to your package.\n\n### How do I upgrade from `cdk-esbuild` v4?\n\nPlease refer to the [v5 release notes](https://github.com/mrgrain/cdk-esbuild/releases/tag/v5.0.0) for a list of backwards incompatible changes and respective upgrade instructions.\n\n### [TS/JS] Why am I getting the error `Cannot find module 'esbuild'`?\n\nThis package depends on _esbuild_ as an optional dependencies. If optional dependencies are not installed automatically on your system (e.g. when using npm v4-6), install _esbuild_ explicitly:\n\n```console\nnpm install esbuild\n```\n\n### [TS/JS] How can I use a different version of _esbuild_?\n\nUse the [override](https://docs.npmjs.com/cli/v9/configuring-npm/package-json?v=true#overrides) instructions for your package manager to force a specific version, for example:\n\n```json\n{\n \"overrides\": {\n \"esbuild\": \"0.14.7\"\n }\n}\n```\n\nBuild and Transform interfaces are relatively stable across _esbuild_ versions.\nHowever if any incompatibilities occur, `buildOptions` / `transformOptions` can be cast to `any`:\n\n```ts\nconst bundledCode = new TypeScriptCode(\"src/handler.ts\", {\n buildOptions: {\n unsupportedOption: \"value\"\n } as any,\n});\n```\n\n### [Python/.NET/Go] How can I use a different version of _esbuild_?\n\nInstall the desired version of _esbuild_ locally or globally [as described in the documentation above](#python-net-go).\n\nBuild and Transform interfaces are relatively stable across _esbuild_ versions.\nHowever if any incompatibilities occur, use the appropriate language features to cast any incompatible `buildOptions` / `transformOptions` to the correct types.\n\n### Can I use this package in my published AWS CDK Construct?\n\nIt is possible to use `cdk-esbuild` in a published AWS CDK Construct library, but not recommended.\nAlways prefer to ship a compiled `.js` file or even bundle a zip archive in your package.\nFor AWS Lambda Functions, [projen provides an excellent solution](https://projen.io/awscdk.html#aws-lambda-functions).\n\nIf you do end up consuming `cdk-esbuild`, you will have to set `buildOptions.absWorkingDir`. The easiest way to do this, is to resolve the path based on the directory name of the calling file:\n\n```js\n// file: node_modules/construct-library/src/index.ts\nconst props = {\n buildOptions: {\n absWorkingDir: path.resolve(__dirname, \"..\"),\n // now: /user/local-app/node_modules/construct-library\n },\n};\n```\n\nThis will dynamically resolve to the correct path, wherever the package is installed.\nPlease open an issue if you encounter any difficulties.\n\n### Can I use this package with AWS CDK v1?\n\nYes, `v2` of `cdk-esbuild` is compatible with AWS CDK v1.\nYou can find the [documentation for it on the v2 branch](https://github.com/mrgrain/cdk-esbuild/tree/v2).\n\nSupport for AWS CDK v1 and `cdk-esbuild` v2 has ended on June 1, 2023.\nBoth packages are not receiving any updates or bug fixes, including for security related issues.\nYou are strongly advised to upgrade to a supported version of these packages.\n"
|
|
2947
3259
|
},
|
|
2948
3260
|
"repository": {
|
|
2949
3261
|
"type": "git",
|
|
@@ -2969,124 +3281,47 @@
|
|
|
2969
3281
|
}
|
|
2970
3282
|
},
|
|
2971
3283
|
"types": {
|
|
2972
|
-
"@mrgrain/cdk-esbuild.
|
|
3284
|
+
"@mrgrain/cdk-esbuild.BuildOptions": {
|
|
2973
3285
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
2974
3286
|
"datatype": true,
|
|
2975
3287
|
"docs": {
|
|
2976
3288
|
"stability": "stable"
|
|
2977
3289
|
},
|
|
2978
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
2979
|
-
"interfaces": [
|
|
2980
|
-
"@mrgrain/cdk-esbuild.BundlerProps"
|
|
2981
|
-
],
|
|
3290
|
+
"fqn": "@mrgrain/cdk-esbuild.BuildOptions",
|
|
2982
3291
|
"kind": "interface",
|
|
2983
3292
|
"locationInModule": {
|
|
2984
|
-
"filename": "src/
|
|
2985
|
-
"line":
|
|
3293
|
+
"filename": "src/esbuild-types.ts",
|
|
3294
|
+
"line": 97
|
|
2986
3295
|
},
|
|
2987
|
-
"name": "
|
|
3296
|
+
"name": "BuildOptions",
|
|
2988
3297
|
"properties": [
|
|
2989
3298
|
{
|
|
2990
3299
|
"abstract": true,
|
|
2991
3300
|
"docs": {
|
|
2992
|
-
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
2993
3301
|
"stability": "stable",
|
|
2994
|
-
"summary": "
|
|
3302
|
+
"summary": "Documentation: https://esbuild.github.io/api/#working-directory."
|
|
2995
3303
|
},
|
|
2996
3304
|
"immutable": true,
|
|
2997
3305
|
"locationInModule": {
|
|
2998
|
-
"filename": "src/
|
|
2999
|
-
"line":
|
|
3306
|
+
"filename": "src/esbuild-types.ts",
|
|
3307
|
+
"line": 149
|
|
3000
3308
|
},
|
|
3001
|
-
"name": "
|
|
3309
|
+
"name": "absWorkingDir",
|
|
3310
|
+
"optional": true,
|
|
3002
3311
|
"type": {
|
|
3003
|
-
"
|
|
3004
|
-
"types": [
|
|
3005
|
-
{
|
|
3006
|
-
"primitive": "string"
|
|
3007
|
-
},
|
|
3008
|
-
{
|
|
3009
|
-
"collection": {
|
|
3010
|
-
"elementtype": {
|
|
3011
|
-
"primitive": "string"
|
|
3012
|
-
},
|
|
3013
|
-
"kind": "array"
|
|
3014
|
-
}
|
|
3015
|
-
},
|
|
3016
|
-
{
|
|
3017
|
-
"collection": {
|
|
3018
|
-
"elementtype": {
|
|
3019
|
-
"primitive": "string"
|
|
3020
|
-
},
|
|
3021
|
-
"kind": "map"
|
|
3022
|
-
}
|
|
3023
|
-
}
|
|
3024
|
-
]
|
|
3025
|
-
}
|
|
3312
|
+
"primitive": "string"
|
|
3026
3313
|
}
|
|
3027
3314
|
},
|
|
3028
3315
|
{
|
|
3029
3316
|
"abstract": true,
|
|
3030
3317
|
"docs": {
|
|
3031
|
-
"remarks": "As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed.\n\nDefaults to a hash of all files in the resulting bundle.",
|
|
3032
3318
|
"stability": "stable",
|
|
3033
|
-
"summary": "
|
|
3319
|
+
"summary": "Documentation: https://esbuild.github.io/api/#alias."
|
|
3034
3320
|
},
|
|
3035
3321
|
"immutable": true,
|
|
3036
3322
|
"locationInModule": {
|
|
3037
|
-
"filename": "src/
|
|
3038
|
-
"line":
|
|
3039
|
-
},
|
|
3040
|
-
"name": "assetHash",
|
|
3041
|
-
"optional": true,
|
|
3042
|
-
"type": {
|
|
3043
|
-
"primitive": "string"
|
|
3044
|
-
}
|
|
3045
|
-
}
|
|
3046
|
-
],
|
|
3047
|
-
"symbolId": "src/asset:AssetProps"
|
|
3048
|
-
},
|
|
3049
|
-
"@mrgrain/cdk-esbuild.BuildOptions": {
|
|
3050
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
3051
|
-
"datatype": true,
|
|
3052
|
-
"docs": {
|
|
3053
|
-
"stability": "stable"
|
|
3054
|
-
},
|
|
3055
|
-
"fqn": "@mrgrain/cdk-esbuild.BuildOptions",
|
|
3056
|
-
"kind": "interface",
|
|
3057
|
-
"locationInModule": {
|
|
3058
|
-
"filename": "src/esbuild-types.ts",
|
|
3059
|
-
"line": 112
|
|
3060
|
-
},
|
|
3061
|
-
"name": "BuildOptions",
|
|
3062
|
-
"properties": [
|
|
3063
|
-
{
|
|
3064
|
-
"abstract": true,
|
|
3065
|
-
"docs": {
|
|
3066
|
-
"stability": "stable",
|
|
3067
|
-
"summary": "Documentation: https://esbuild.github.io/api/#working-directory."
|
|
3068
|
-
},
|
|
3069
|
-
"immutable": true,
|
|
3070
|
-
"locationInModule": {
|
|
3071
|
-
"filename": "src/esbuild-types.ts",
|
|
3072
|
-
"line": 164
|
|
3073
|
-
},
|
|
3074
|
-
"name": "absWorkingDir",
|
|
3075
|
-
"optional": true,
|
|
3076
|
-
"type": {
|
|
3077
|
-
"primitive": "string"
|
|
3078
|
-
}
|
|
3079
|
-
},
|
|
3080
|
-
{
|
|
3081
|
-
"abstract": true,
|
|
3082
|
-
"docs": {
|
|
3083
|
-
"stability": "stable",
|
|
3084
|
-
"summary": "Documentation: https://esbuild.github.io/api/#alias."
|
|
3085
|
-
},
|
|
3086
|
-
"immutable": true,
|
|
3087
|
-
"locationInModule": {
|
|
3088
|
-
"filename": "src/esbuild-types.ts",
|
|
3089
|
-
"line": 132
|
|
3323
|
+
"filename": "src/esbuild-types.ts",
|
|
3324
|
+
"line": 117
|
|
3090
3325
|
},
|
|
3091
3326
|
"name": "alias",
|
|
3092
3327
|
"optional": true,
|
|
@@ -3108,7 +3343,7 @@
|
|
|
3108
3343
|
"immutable": true,
|
|
3109
3344
|
"locationInModule": {
|
|
3110
3345
|
"filename": "src/esbuild-types.ts",
|
|
3111
|
-
"line":
|
|
3346
|
+
"line": 129
|
|
3112
3347
|
},
|
|
3113
3348
|
"name": "allowOverwrite",
|
|
3114
3349
|
"optional": true,
|
|
@@ -3125,7 +3360,7 @@
|
|
|
3125
3360
|
"immutable": true,
|
|
3126
3361
|
"locationInModule": {
|
|
3127
3362
|
"filename": "src/esbuild-types.ts",
|
|
3128
|
-
"line":
|
|
3363
|
+
"line": 141
|
|
3129
3364
|
},
|
|
3130
3365
|
"name": "assetNames",
|
|
3131
3366
|
"optional": true,
|
|
@@ -3142,7 +3377,7 @@
|
|
|
3142
3377
|
"immutable": true,
|
|
3143
3378
|
"locationInModule": {
|
|
3144
3379
|
"filename": "src/esbuild-types.ts",
|
|
3145
|
-
"line":
|
|
3380
|
+
"line": 145
|
|
3146
3381
|
},
|
|
3147
3382
|
"name": "banner",
|
|
3148
3383
|
"optional": true,
|
|
@@ -3164,7 +3399,7 @@
|
|
|
3164
3399
|
"immutable": true,
|
|
3165
3400
|
"locationInModule": {
|
|
3166
3401
|
"filename": "src/esbuild-types.ts",
|
|
3167
|
-
"line":
|
|
3402
|
+
"line": 99
|
|
3168
3403
|
},
|
|
3169
3404
|
"name": "bundle",
|
|
3170
3405
|
"optional": true,
|
|
@@ -3198,7 +3433,7 @@
|
|
|
3198
3433
|
"immutable": true,
|
|
3199
3434
|
"locationInModule": {
|
|
3200
3435
|
"filename": "src/esbuild-types.ts",
|
|
3201
|
-
"line":
|
|
3436
|
+
"line": 139
|
|
3202
3437
|
},
|
|
3203
3438
|
"name": "chunkNames",
|
|
3204
3439
|
"optional": true,
|
|
@@ -3232,7 +3467,7 @@
|
|
|
3232
3467
|
"immutable": true,
|
|
3233
3468
|
"locationInModule": {
|
|
3234
3469
|
"filename": "src/esbuild-types.ts",
|
|
3235
|
-
"line":
|
|
3470
|
+
"line": 125
|
|
3236
3471
|
},
|
|
3237
3472
|
"name": "conditions",
|
|
3238
3473
|
"optional": true,
|
|
@@ -3320,7 +3555,7 @@
|
|
|
3320
3555
|
"immutable": true,
|
|
3321
3556
|
"locationInModule": {
|
|
3322
3557
|
"filename": "src/esbuild-types.ts",
|
|
3323
|
-
"line":
|
|
3558
|
+
"line": 137
|
|
3324
3559
|
},
|
|
3325
3560
|
"name": "entryNames",
|
|
3326
3561
|
"optional": true,
|
|
@@ -3337,7 +3572,7 @@
|
|
|
3337
3572
|
"immutable": true,
|
|
3338
3573
|
"locationInModule": {
|
|
3339
3574
|
"filename": "src/esbuild-types.ts",
|
|
3340
|
-
"line":
|
|
3575
|
+
"line": 113
|
|
3341
3576
|
},
|
|
3342
3577
|
"name": "external",
|
|
3343
3578
|
"optional": true,
|
|
@@ -3359,7 +3594,7 @@
|
|
|
3359
3594
|
"immutable": true,
|
|
3360
3595
|
"locationInModule": {
|
|
3361
3596
|
"filename": "src/esbuild-types.ts",
|
|
3362
|
-
"line":
|
|
3597
|
+
"line": 147
|
|
3363
3598
|
},
|
|
3364
3599
|
"name": "footer",
|
|
3365
3600
|
"optional": true,
|
|
@@ -3432,7 +3667,7 @@
|
|
|
3432
3667
|
"immutable": true,
|
|
3433
3668
|
"locationInModule": {
|
|
3434
3669
|
"filename": "src/esbuild-types.ts",
|
|
3435
|
-
"line":
|
|
3670
|
+
"line": 143
|
|
3436
3671
|
},
|
|
3437
3672
|
"name": "inject",
|
|
3438
3673
|
"optional": true,
|
|
@@ -3607,7 +3842,7 @@
|
|
|
3607
3842
|
"immutable": true,
|
|
3608
3843
|
"locationInModule": {
|
|
3609
3844
|
"filename": "src/esbuild-types.ts",
|
|
3610
|
-
"line":
|
|
3845
|
+
"line": 119
|
|
3611
3846
|
},
|
|
3612
3847
|
"name": "loader",
|
|
3613
3848
|
"optional": true,
|
|
@@ -3685,7 +3920,7 @@
|
|
|
3685
3920
|
"immutable": true,
|
|
3686
3921
|
"locationInModule": {
|
|
3687
3922
|
"filename": "src/esbuild-types.ts",
|
|
3688
|
-
"line":
|
|
3923
|
+
"line": 123
|
|
3689
3924
|
},
|
|
3690
3925
|
"name": "mainFields",
|
|
3691
3926
|
"optional": true,
|
|
@@ -3772,7 +4007,7 @@
|
|
|
3772
4007
|
"immutable": true,
|
|
3773
4008
|
"locationInModule": {
|
|
3774
4009
|
"filename": "src/esbuild-types.ts",
|
|
3775
|
-
"line":
|
|
4010
|
+
"line": 107
|
|
3776
4011
|
},
|
|
3777
4012
|
"name": "metafile",
|
|
3778
4013
|
"optional": true,
|
|
@@ -3857,7 +4092,7 @@
|
|
|
3857
4092
|
"immutable": true,
|
|
3858
4093
|
"locationInModule": {
|
|
3859
4094
|
"filename": "src/esbuild-types.ts",
|
|
3860
|
-
"line":
|
|
4095
|
+
"line": 151
|
|
3861
4096
|
},
|
|
3862
4097
|
"name": "nodePaths",
|
|
3863
4098
|
"optional": true,
|
|
@@ -3879,7 +4114,7 @@
|
|
|
3879
4114
|
"immutable": true,
|
|
3880
4115
|
"locationInModule": {
|
|
3881
4116
|
"filename": "src/esbuild-types.ts",
|
|
3882
|
-
"line":
|
|
4117
|
+
"line": 111
|
|
3883
4118
|
},
|
|
3884
4119
|
"name": "outbase",
|
|
3885
4120
|
"optional": true,
|
|
@@ -3896,7 +4131,7 @@
|
|
|
3896
4131
|
"immutable": true,
|
|
3897
4132
|
"locationInModule": {
|
|
3898
4133
|
"filename": "src/esbuild-types.ts",
|
|
3899
|
-
"line":
|
|
4134
|
+
"line": 109
|
|
3900
4135
|
},
|
|
3901
4136
|
"name": "outdir",
|
|
3902
4137
|
"optional": true,
|
|
@@ -3913,7 +4148,7 @@
|
|
|
3913
4148
|
"immutable": true,
|
|
3914
4149
|
"locationInModule": {
|
|
3915
4150
|
"filename": "src/esbuild-types.ts",
|
|
3916
|
-
"line":
|
|
4151
|
+
"line": 133
|
|
3917
4152
|
},
|
|
3918
4153
|
"name": "outExtension",
|
|
3919
4154
|
"optional": true,
|
|
@@ -3935,7 +4170,7 @@
|
|
|
3935
4170
|
"immutable": true,
|
|
3936
4171
|
"locationInModule": {
|
|
3937
4172
|
"filename": "src/esbuild-types.ts",
|
|
3938
|
-
"line":
|
|
4173
|
+
"line": 105
|
|
3939
4174
|
},
|
|
3940
4175
|
"name": "outfile",
|
|
3941
4176
|
"optional": true,
|
|
@@ -3952,7 +4187,7 @@
|
|
|
3952
4187
|
"immutable": true,
|
|
3953
4188
|
"locationInModule": {
|
|
3954
4189
|
"filename": "src/esbuild-types.ts",
|
|
3955
|
-
"line":
|
|
4190
|
+
"line": 115
|
|
3956
4191
|
},
|
|
3957
4192
|
"name": "packages",
|
|
3958
4193
|
"optional": true,
|
|
@@ -3986,7 +4221,7 @@
|
|
|
3986
4221
|
"immutable": true,
|
|
3987
4222
|
"locationInModule": {
|
|
3988
4223
|
"filename": "src/esbuild-types.ts",
|
|
3989
|
-
"line":
|
|
4224
|
+
"line": 103
|
|
3990
4225
|
},
|
|
3991
4226
|
"name": "preserveSymlinks",
|
|
3992
4227
|
"optional": true,
|
|
@@ -4003,7 +4238,7 @@
|
|
|
4003
4238
|
"immutable": true,
|
|
4004
4239
|
"locationInModule": {
|
|
4005
4240
|
"filename": "src/esbuild-types.ts",
|
|
4006
|
-
"line":
|
|
4241
|
+
"line": 135
|
|
4007
4242
|
},
|
|
4008
4243
|
"name": "publicPath",
|
|
4009
4244
|
"optional": true,
|
|
@@ -4059,7 +4294,7 @@
|
|
|
4059
4294
|
"immutable": true,
|
|
4060
4295
|
"locationInModule": {
|
|
4061
4296
|
"filename": "src/esbuild-types.ts",
|
|
4062
|
-
"line":
|
|
4297
|
+
"line": 121
|
|
4063
4298
|
},
|
|
4064
4299
|
"name": "resolveExtensions",
|
|
4065
4300
|
"optional": true,
|
|
@@ -4141,7 +4376,7 @@
|
|
|
4141
4376
|
"immutable": true,
|
|
4142
4377
|
"locationInModule": {
|
|
4143
4378
|
"filename": "src/esbuild-types.ts",
|
|
4144
|
-
"line":
|
|
4379
|
+
"line": 101
|
|
4145
4380
|
},
|
|
4146
4381
|
"name": "splitting",
|
|
4147
4382
|
"optional": true,
|
|
@@ -4228,7 +4463,7 @@
|
|
|
4228
4463
|
"immutable": true,
|
|
4229
4464
|
"locationInModule": {
|
|
4230
4465
|
"filename": "src/esbuild-types.ts",
|
|
4231
|
-
"line":
|
|
4466
|
+
"line": 131
|
|
4232
4467
|
},
|
|
4233
4468
|
"name": "tsconfig",
|
|
4234
4469
|
"optional": true,
|
|
@@ -4256,7 +4491,7 @@
|
|
|
4256
4491
|
"primitive": "string"
|
|
4257
4492
|
},
|
|
4258
4493
|
{
|
|
4259
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
4494
|
+
"fqn": "@mrgrain/cdk-esbuild.TsconfigRaw"
|
|
4260
4495
|
}
|
|
4261
4496
|
]
|
|
4262
4497
|
}
|
|
@@ -4271,7 +4506,7 @@
|
|
|
4271
4506
|
"immutable": true,
|
|
4272
4507
|
"locationInModule": {
|
|
4273
4508
|
"filename": "src/esbuild-types.ts",
|
|
4274
|
-
"line":
|
|
4509
|
+
"line": 127
|
|
4275
4510
|
},
|
|
4276
4511
|
"name": "write",
|
|
4277
4512
|
"optional": true,
|
|
@@ -4402,7 +4637,7 @@
|
|
|
4402
4637
|
"kind": "interface",
|
|
4403
4638
|
"locationInModule": {
|
|
4404
4639
|
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4405
|
-
"line":
|
|
4640
|
+
"line": 77
|
|
4406
4641
|
},
|
|
4407
4642
|
"name": "CodeConfig",
|
|
4408
4643
|
"properties": [
|
|
@@ -4416,7 +4651,7 @@
|
|
|
4416
4651
|
"immutable": true,
|
|
4417
4652
|
"locationInModule": {
|
|
4418
4653
|
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4419
|
-
"line":
|
|
4654
|
+
"line": 92
|
|
4420
4655
|
},
|
|
4421
4656
|
"name": "image",
|
|
4422
4657
|
"optional": true,
|
|
@@ -4434,7 +4669,7 @@
|
|
|
4434
4669
|
"immutable": true,
|
|
4435
4670
|
"locationInModule": {
|
|
4436
4671
|
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4437
|
-
"line":
|
|
4672
|
+
"line": 87
|
|
4438
4673
|
},
|
|
4439
4674
|
"name": "inlineCode",
|
|
4440
4675
|
"optional": true,
|
|
@@ -4452,7 +4687,7 @@
|
|
|
4452
4687
|
"immutable": true,
|
|
4453
4688
|
"locationInModule": {
|
|
4454
4689
|
"filename": "node_modules/aws-cdk-lib/aws-lambda/lib/code.d.ts",
|
|
4455
|
-
"line":
|
|
4690
|
+
"line": 82
|
|
4456
4691
|
},
|
|
4457
4692
|
"name": "s3Location",
|
|
4458
4693
|
"optional": true,
|
|
@@ -4473,7 +4708,7 @@
|
|
|
4473
4708
|
"kind": "interface",
|
|
4474
4709
|
"locationInModule": {
|
|
4475
4710
|
"filename": "src/esbuild-types.ts",
|
|
4476
|
-
"line":
|
|
4711
|
+
"line": 643
|
|
4477
4712
|
},
|
|
4478
4713
|
"name": "CompilerOptions",
|
|
4479
4714
|
"properties": [
|
|
@@ -4485,7 +4720,7 @@
|
|
|
4485
4720
|
"immutable": true,
|
|
4486
4721
|
"locationInModule": {
|
|
4487
4722
|
"filename": "src/esbuild-types.ts",
|
|
4488
|
-
"line":
|
|
4723
|
+
"line": 644
|
|
4489
4724
|
},
|
|
4490
4725
|
"name": "alwaysStrict",
|
|
4491
4726
|
"optional": true,
|
|
@@ -4501,12 +4736,12 @@
|
|
|
4501
4736
|
"immutable": true,
|
|
4502
4737
|
"locationInModule": {
|
|
4503
4738
|
"filename": "src/esbuild-types.ts",
|
|
4504
|
-
"line":
|
|
4739
|
+
"line": 645
|
|
4505
4740
|
},
|
|
4506
4741
|
"name": "baseUrl",
|
|
4507
4742
|
"optional": true,
|
|
4508
4743
|
"type": {
|
|
4509
|
-
"primitive": "
|
|
4744
|
+
"primitive": "string"
|
|
4510
4745
|
}
|
|
4511
4746
|
},
|
|
4512
4747
|
{
|
|
@@ -4517,7 +4752,7 @@
|
|
|
4517
4752
|
"immutable": true,
|
|
4518
4753
|
"locationInModule": {
|
|
4519
4754
|
"filename": "src/esbuild-types.ts",
|
|
4520
|
-
"line":
|
|
4755
|
+
"line": 646
|
|
4521
4756
|
},
|
|
4522
4757
|
"name": "experimentalDecorators",
|
|
4523
4758
|
"optional": true,
|
|
@@ -4533,7 +4768,7 @@
|
|
|
4533
4768
|
"immutable": true,
|
|
4534
4769
|
"locationInModule": {
|
|
4535
4770
|
"filename": "src/esbuild-types.ts",
|
|
4536
|
-
"line":
|
|
4771
|
+
"line": 647
|
|
4537
4772
|
},
|
|
4538
4773
|
"name": "importsNotUsedAsValues",
|
|
4539
4774
|
"optional": true,
|
|
@@ -4549,7 +4784,7 @@
|
|
|
4549
4784
|
"immutable": true,
|
|
4550
4785
|
"locationInModule": {
|
|
4551
4786
|
"filename": "src/esbuild-types.ts",
|
|
4552
|
-
"line":
|
|
4787
|
+
"line": 648
|
|
4553
4788
|
},
|
|
4554
4789
|
"name": "jsx",
|
|
4555
4790
|
"optional": true,
|
|
@@ -4565,7 +4800,7 @@
|
|
|
4565
4800
|
"immutable": true,
|
|
4566
4801
|
"locationInModule": {
|
|
4567
4802
|
"filename": "src/esbuild-types.ts",
|
|
4568
|
-
"line":
|
|
4803
|
+
"line": 649
|
|
4569
4804
|
},
|
|
4570
4805
|
"name": "jsxFactory",
|
|
4571
4806
|
"optional": true,
|
|
@@ -4581,7 +4816,7 @@
|
|
|
4581
4816
|
"immutable": true,
|
|
4582
4817
|
"locationInModule": {
|
|
4583
4818
|
"filename": "src/esbuild-types.ts",
|
|
4584
|
-
"line":
|
|
4819
|
+
"line": 650
|
|
4585
4820
|
},
|
|
4586
4821
|
"name": "jsxFragmentFactory",
|
|
4587
4822
|
"optional": true,
|
|
@@ -4597,7 +4832,7 @@
|
|
|
4597
4832
|
"immutable": true,
|
|
4598
4833
|
"locationInModule": {
|
|
4599
4834
|
"filename": "src/esbuild-types.ts",
|
|
4600
|
-
"line":
|
|
4835
|
+
"line": 651
|
|
4601
4836
|
},
|
|
4602
4837
|
"name": "jsxImportSource",
|
|
4603
4838
|
"optional": true,
|
|
@@ -4613,7 +4848,7 @@
|
|
|
4613
4848
|
"immutable": true,
|
|
4614
4849
|
"locationInModule": {
|
|
4615
4850
|
"filename": "src/esbuild-types.ts",
|
|
4616
|
-
"line":
|
|
4851
|
+
"line": 652
|
|
4617
4852
|
},
|
|
4618
4853
|
"name": "paths",
|
|
4619
4854
|
"optional": true,
|
|
@@ -4639,7 +4874,7 @@
|
|
|
4639
4874
|
"immutable": true,
|
|
4640
4875
|
"locationInModule": {
|
|
4641
4876
|
"filename": "src/esbuild-types.ts",
|
|
4642
|
-
"line":
|
|
4877
|
+
"line": 653
|
|
4643
4878
|
},
|
|
4644
4879
|
"name": "preserveValueImports",
|
|
4645
4880
|
"optional": true,
|
|
@@ -4655,7 +4890,7 @@
|
|
|
4655
4890
|
"immutable": true,
|
|
4656
4891
|
"locationInModule": {
|
|
4657
4892
|
"filename": "src/esbuild-types.ts",
|
|
4658
|
-
"line":
|
|
4893
|
+
"line": 654
|
|
4659
4894
|
},
|
|
4660
4895
|
"name": "strict",
|
|
4661
4896
|
"optional": true,
|
|
@@ -4671,7 +4906,7 @@
|
|
|
4671
4906
|
"immutable": true,
|
|
4672
4907
|
"locationInModule": {
|
|
4673
4908
|
"filename": "src/esbuild-types.ts",
|
|
4674
|
-
"line":
|
|
4909
|
+
"line": 655
|
|
4675
4910
|
},
|
|
4676
4911
|
"name": "target",
|
|
4677
4912
|
"optional": true,
|
|
@@ -4687,7 +4922,7 @@
|
|
|
4687
4922
|
"immutable": true,
|
|
4688
4923
|
"locationInModule": {
|
|
4689
4924
|
"filename": "src/esbuild-types.ts",
|
|
4690
|
-
"line":
|
|
4925
|
+
"line": 656
|
|
4691
4926
|
},
|
|
4692
4927
|
"name": "useDefineForClassFields",
|
|
4693
4928
|
"optional": true,
|
|
@@ -4703,7 +4938,7 @@
|
|
|
4703
4938
|
"immutable": true,
|
|
4704
4939
|
"locationInModule": {
|
|
4705
4940
|
"filename": "src/esbuild-types.ts",
|
|
4706
|
-
"line":
|
|
4941
|
+
"line": 657
|
|
4707
4942
|
},
|
|
4708
4943
|
"name": "verbatimModuleSyntax",
|
|
4709
4944
|
"optional": true,
|
|
@@ -4714,52 +4949,6 @@
|
|
|
4714
4949
|
],
|
|
4715
4950
|
"symbolId": "src/esbuild-types:CompilerOptions"
|
|
4716
4951
|
},
|
|
4717
|
-
"@mrgrain/cdk-esbuild.EsbuildAsset": {
|
|
4718
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
4719
|
-
"base": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
4720
|
-
"docs": {
|
|
4721
|
-
"remarks": "You should always use `TypeScriptAsset` or `JavaScriptAsset`.",
|
|
4722
|
-
"stability": "experimental",
|
|
4723
|
-
"summary": "Represents a generic esbuild asset."
|
|
4724
|
-
},
|
|
4725
|
-
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
4726
|
-
"initializer": {
|
|
4727
|
-
"docs": {
|
|
4728
|
-
"stability": "stable"
|
|
4729
|
-
},
|
|
4730
|
-
"locationInModule": {
|
|
4731
|
-
"filename": "src/asset.ts",
|
|
4732
|
-
"line": 57
|
|
4733
|
-
},
|
|
4734
|
-
"parameters": [
|
|
4735
|
-
{
|
|
4736
|
-
"name": "scope",
|
|
4737
|
-
"type": {
|
|
4738
|
-
"fqn": "constructs.Construct"
|
|
4739
|
-
}
|
|
4740
|
-
},
|
|
4741
|
-
{
|
|
4742
|
-
"name": "id",
|
|
4743
|
-
"type": {
|
|
4744
|
-
"primitive": "string"
|
|
4745
|
-
}
|
|
4746
|
-
},
|
|
4747
|
-
{
|
|
4748
|
-
"name": "props",
|
|
4749
|
-
"type": {
|
|
4750
|
-
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
4751
|
-
}
|
|
4752
|
-
}
|
|
4753
|
-
]
|
|
4754
|
-
},
|
|
4755
|
-
"kind": "class",
|
|
4756
|
-
"locationInModule": {
|
|
4757
|
-
"filename": "src/asset.ts",
|
|
4758
|
-
"line": 53
|
|
4759
|
-
},
|
|
4760
|
-
"name": "EsbuildAsset",
|
|
4761
|
-
"symbolId": "src/asset:EsbuildAsset"
|
|
4762
|
-
},
|
|
4763
4952
|
"@mrgrain/cdk-esbuild.EsbuildBundler": {
|
|
4764
4953
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4765
4954
|
"docs": {
|
|
@@ -4779,7 +4968,7 @@
|
|
|
4779
4968
|
"parameters": [
|
|
4780
4969
|
{
|
|
4781
4970
|
"docs": {
|
|
4782
|
-
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n
|
|
4971
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4783
4972
|
"stability": "experimental",
|
|
4784
4973
|
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4785
4974
|
},
|
|
@@ -4831,7 +5020,7 @@
|
|
|
4831
5020
|
"properties": [
|
|
4832
5021
|
{
|
|
4833
5022
|
"docs": {
|
|
4834
|
-
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n
|
|
5023
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4835
5024
|
"stability": "experimental",
|
|
4836
5025
|
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4837
5026
|
},
|
|
@@ -4915,366 +5104,123 @@
|
|
|
4915
5104
|
],
|
|
4916
5105
|
"symbolId": "src/bundler:EsbuildBundler"
|
|
4917
5106
|
},
|
|
4918
|
-
"@mrgrain/cdk-esbuild.
|
|
5107
|
+
"@mrgrain/cdk-esbuild.EsbuildProvider": {
|
|
4919
5108
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
4920
|
-
"base": "aws-cdk-lib.aws_lambda.Code",
|
|
4921
5109
|
"docs": {
|
|
4922
|
-
"
|
|
4923
|
-
"
|
|
4924
|
-
"summary": "Represents a generic esbuild code bundle."
|
|
5110
|
+
"stability": "stable",
|
|
5111
|
+
"summary": "Default esbuild implementation calling esbuild's JavaScript API."
|
|
4925
5112
|
},
|
|
4926
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
5113
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildProvider",
|
|
4927
5114
|
"initializer": {
|
|
4928
5115
|
"docs": {
|
|
4929
|
-
"stability": "
|
|
5116
|
+
"stability": "stable"
|
|
4930
5117
|
},
|
|
4931
5118
|
"locationInModule": {
|
|
4932
|
-
"filename": "src/
|
|
4933
|
-
"line":
|
|
5119
|
+
"filename": "src/provider.ts",
|
|
5120
|
+
"line": 139
|
|
4934
5121
|
},
|
|
4935
5122
|
"parameters": [
|
|
4936
5123
|
{
|
|
4937
|
-
"docs": {
|
|
4938
|
-
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
4939
|
-
"stability": "stable",
|
|
4940
|
-
"summary": "A path or list or map of paths to the entry points of your code."
|
|
4941
|
-
},
|
|
4942
|
-
"name": "entryPoints",
|
|
4943
|
-
"type": {
|
|
4944
|
-
"union": {
|
|
4945
|
-
"types": [
|
|
4946
|
-
{
|
|
4947
|
-
"primitive": "string"
|
|
4948
|
-
},
|
|
4949
|
-
{
|
|
4950
|
-
"collection": {
|
|
4951
|
-
"elementtype": {
|
|
4952
|
-
"primitive": "string"
|
|
4953
|
-
},
|
|
4954
|
-
"kind": "array"
|
|
4955
|
-
}
|
|
4956
|
-
},
|
|
4957
|
-
{
|
|
4958
|
-
"collection": {
|
|
4959
|
-
"elementtype": {
|
|
4960
|
-
"primitive": "string"
|
|
4961
|
-
},
|
|
4962
|
-
"kind": "map"
|
|
4963
|
-
}
|
|
4964
|
-
}
|
|
4965
|
-
]
|
|
4966
|
-
}
|
|
4967
|
-
}
|
|
4968
|
-
},
|
|
4969
|
-
{
|
|
4970
|
-
"docs": {
|
|
4971
|
-
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=node`\n- `target=nodeX` with X being the major node version running locally",
|
|
4972
|
-
"stability": "stable",
|
|
4973
|
-
"summary": "Props to change the behavior of the bundler."
|
|
4974
|
-
},
|
|
4975
5124
|
"name": "props",
|
|
5125
|
+
"optional": true,
|
|
4976
5126
|
"type": {
|
|
4977
|
-
"
|
|
4978
|
-
"types": [
|
|
4979
|
-
{
|
|
4980
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
|
|
4981
|
-
},
|
|
4982
|
-
{
|
|
4983
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptCodeProps"
|
|
4984
|
-
}
|
|
4985
|
-
]
|
|
4986
|
-
}
|
|
5127
|
+
"fqn": "@mrgrain/cdk-esbuild.EsbuildProviderProps"
|
|
4987
5128
|
}
|
|
4988
5129
|
}
|
|
4989
5130
|
]
|
|
4990
5131
|
},
|
|
5132
|
+
"interfaces": [
|
|
5133
|
+
"@mrgrain/cdk-esbuild.IBuildProvider",
|
|
5134
|
+
"@mrgrain/cdk-esbuild.ITransformProvider"
|
|
5135
|
+
],
|
|
4991
5136
|
"kind": "class",
|
|
4992
5137
|
"locationInModule": {
|
|
4993
|
-
"filename": "src/
|
|
4994
|
-
"line":
|
|
5138
|
+
"filename": "src/provider.ts",
|
|
5139
|
+
"line": 95
|
|
4995
5140
|
},
|
|
4996
5141
|
"methods": [
|
|
4997
5142
|
{
|
|
4998
5143
|
"docs": {
|
|
4999
|
-
"stability": "
|
|
5000
|
-
"summary": "
|
|
5144
|
+
"stability": "stable",
|
|
5145
|
+
"summary": "Get the default implementation for the Build API."
|
|
5001
5146
|
},
|
|
5002
5147
|
"locationInModule": {
|
|
5003
|
-
"filename": "src/
|
|
5004
|
-
"line":
|
|
5148
|
+
"filename": "src/provider.ts",
|
|
5149
|
+
"line": 118
|
|
5005
5150
|
},
|
|
5006
|
-
"name": "
|
|
5007
|
-
"
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
"name": "scope",
|
|
5011
|
-
"type": {
|
|
5012
|
-
"fqn": "constructs.Construct"
|
|
5013
|
-
}
|
|
5151
|
+
"name": "defaultBuildProvider",
|
|
5152
|
+
"returns": {
|
|
5153
|
+
"type": {
|
|
5154
|
+
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider"
|
|
5014
5155
|
}
|
|
5015
|
-
|
|
5156
|
+
},
|
|
5157
|
+
"static": true
|
|
5158
|
+
},
|
|
5159
|
+
{
|
|
5160
|
+
"docs": {
|
|
5161
|
+
"stability": "stable",
|
|
5162
|
+
"summary": "Get the default implementation for the Transformation API."
|
|
5163
|
+
},
|
|
5164
|
+
"locationInModule": {
|
|
5165
|
+
"filename": "src/provider.ts",
|
|
5166
|
+
"line": 132
|
|
5167
|
+
},
|
|
5168
|
+
"name": "defaultTransformationProvider",
|
|
5016
5169
|
"returns": {
|
|
5017
5170
|
"type": {
|
|
5018
|
-
"fqn": "
|
|
5171
|
+
"fqn": "@mrgrain/cdk-esbuild.ITransformProvider"
|
|
5019
5172
|
}
|
|
5020
|
-
}
|
|
5173
|
+
},
|
|
5174
|
+
"static": true
|
|
5021
5175
|
},
|
|
5022
5176
|
{
|
|
5023
5177
|
"docs": {
|
|
5024
|
-
"remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
|
|
5025
5178
|
"stability": "stable",
|
|
5026
|
-
"summary": "
|
|
5179
|
+
"summary": "Set the default implementation for the Build API."
|
|
5027
5180
|
},
|
|
5028
5181
|
"locationInModule": {
|
|
5029
|
-
"filename": "src/
|
|
5030
|
-
"line":
|
|
5182
|
+
"filename": "src/provider.ts",
|
|
5183
|
+
"line": 111
|
|
5031
5184
|
},
|
|
5032
|
-
"name": "
|
|
5033
|
-
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
5185
|
+
"name": "overrideDefaultBuildProvider",
|
|
5034
5186
|
"parameters": [
|
|
5035
5187
|
{
|
|
5036
|
-
"name": "
|
|
5037
|
-
"type": {
|
|
5038
|
-
"fqn": "aws-cdk-lib.CfnResource"
|
|
5039
|
-
}
|
|
5040
|
-
},
|
|
5041
|
-
{
|
|
5042
|
-
"name": "options",
|
|
5043
|
-
"optional": true,
|
|
5188
|
+
"name": "provider",
|
|
5044
5189
|
"type": {
|
|
5045
|
-
"fqn": "
|
|
5190
|
+
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider"
|
|
5046
5191
|
}
|
|
5047
5192
|
}
|
|
5048
|
-
]
|
|
5193
|
+
],
|
|
5194
|
+
"static": true
|
|
5049
5195
|
},
|
|
5050
5196
|
{
|
|
5051
5197
|
"docs": {
|
|
5052
|
-
"stability": "
|
|
5198
|
+
"stability": "stable",
|
|
5199
|
+
"summary": "Set the default implementation for both Build and Transformation API."
|
|
5053
5200
|
},
|
|
5054
5201
|
"locationInModule": {
|
|
5055
|
-
"filename": "src/
|
|
5056
|
-
"line":
|
|
5202
|
+
"filename": "src/provider.ts",
|
|
5203
|
+
"line": 103
|
|
5057
5204
|
},
|
|
5058
|
-
"name": "
|
|
5205
|
+
"name": "overrideDefaultProvider",
|
|
5059
5206
|
"parameters": [
|
|
5060
5207
|
{
|
|
5061
|
-
"name": "
|
|
5208
|
+
"name": "provider",
|
|
5062
5209
|
"type": {
|
|
5063
|
-
"fqn": "
|
|
5210
|
+
"fqn": "@mrgrain/cdk-esbuild.IEsbuildProvider"
|
|
5064
5211
|
}
|
|
5065
5212
|
}
|
|
5066
5213
|
],
|
|
5067
|
-
"
|
|
5068
|
-
|
|
5069
|
-
"type": {
|
|
5070
|
-
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
5071
|
-
}
|
|
5072
|
-
}
|
|
5073
|
-
}
|
|
5074
|
-
],
|
|
5075
|
-
"name": "EsbuildCode",
|
|
5076
|
-
"properties": [
|
|
5214
|
+
"static": true
|
|
5215
|
+
},
|
|
5077
5216
|
{
|
|
5078
5217
|
"docs": {
|
|
5079
|
-
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
5080
5218
|
"stability": "stable",
|
|
5081
|
-
"summary": "
|
|
5219
|
+
"summary": "Set the default implementation for the Transformation API."
|
|
5082
5220
|
},
|
|
5083
|
-
"immutable": true,
|
|
5084
5221
|
"locationInModule": {
|
|
5085
|
-
"filename": "src/
|
|
5086
|
-
"line":
|
|
5087
|
-
},
|
|
5088
|
-
"name": "entryPoints",
|
|
5089
|
-
"type": {
|
|
5090
|
-
"union": {
|
|
5091
|
-
"types": [
|
|
5092
|
-
{
|
|
5093
|
-
"primitive": "string"
|
|
5094
|
-
},
|
|
5095
|
-
{
|
|
5096
|
-
"collection": {
|
|
5097
|
-
"elementtype": {
|
|
5098
|
-
"primitive": "string"
|
|
5099
|
-
},
|
|
5100
|
-
"kind": "array"
|
|
5101
|
-
}
|
|
5102
|
-
},
|
|
5103
|
-
{
|
|
5104
|
-
"collection": {
|
|
5105
|
-
"elementtype": {
|
|
5106
|
-
"primitive": "string"
|
|
5107
|
-
},
|
|
5108
|
-
"kind": "map"
|
|
5109
|
-
}
|
|
5110
|
-
}
|
|
5111
|
-
]
|
|
5112
|
-
}
|
|
5113
|
-
}
|
|
5114
|
-
},
|
|
5115
|
-
{
|
|
5116
|
-
"docs": {
|
|
5117
|
-
"stability": "experimental"
|
|
5118
|
-
},
|
|
5119
|
-
"locationInModule": {
|
|
5120
|
-
"filename": "src/code.ts",
|
|
5121
|
-
"line": 39
|
|
5122
|
-
},
|
|
5123
|
-
"name": "asset",
|
|
5124
|
-
"protected": true,
|
|
5125
|
-
"type": {
|
|
5126
|
-
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
5127
|
-
}
|
|
5128
|
-
},
|
|
5129
|
-
{
|
|
5130
|
-
"docs": {
|
|
5131
|
-
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
5132
|
-
"stability": "deprecated",
|
|
5133
|
-
"summary": "Determines whether this Code is inline code or not."
|
|
5134
|
-
},
|
|
5135
|
-
"locationInModule": {
|
|
5136
|
-
"filename": "src/code.ts",
|
|
5137
|
-
"line": 46
|
|
5138
|
-
},
|
|
5139
|
-
"name": "isInline",
|
|
5140
|
-
"type": {
|
|
5141
|
-
"primitive": "boolean"
|
|
5142
|
-
}
|
|
5143
|
-
},
|
|
5144
|
-
{
|
|
5145
|
-
"docs": {
|
|
5146
|
-
"stability": "experimental"
|
|
5147
|
-
},
|
|
5148
|
-
"locationInModule": {
|
|
5149
|
-
"filename": "src/code.ts",
|
|
5150
|
-
"line": 37
|
|
5151
|
-
},
|
|
5152
|
-
"name": "props",
|
|
5153
|
-
"protected": true,
|
|
5154
|
-
"type": {
|
|
5155
|
-
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
5156
|
-
}
|
|
5157
|
-
}
|
|
5158
|
-
],
|
|
5159
|
-
"symbolId": "src/code:EsbuildCode"
|
|
5160
|
-
},
|
|
5161
|
-
"@mrgrain/cdk-esbuild.EsbuildProvider": {
|
|
5162
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
5163
|
-
"docs": {
|
|
5164
|
-
"stability": "stable",
|
|
5165
|
-
"summary": "Default esbuild implementation calling esbuild's JavaScript API."
|
|
5166
|
-
},
|
|
5167
|
-
"fqn": "@mrgrain/cdk-esbuild.EsbuildProvider",
|
|
5168
|
-
"initializer": {
|
|
5169
|
-
"docs": {
|
|
5170
|
-
"stability": "stable"
|
|
5171
|
-
},
|
|
5172
|
-
"locationInModule": {
|
|
5173
|
-
"filename": "src/provider.ts",
|
|
5174
|
-
"line": 139
|
|
5175
|
-
},
|
|
5176
|
-
"parameters": [
|
|
5177
|
-
{
|
|
5178
|
-
"name": "props",
|
|
5179
|
-
"optional": true,
|
|
5180
|
-
"type": {
|
|
5181
|
-
"fqn": "@mrgrain/cdk-esbuild.EsbuildProviderProps"
|
|
5182
|
-
}
|
|
5183
|
-
}
|
|
5184
|
-
]
|
|
5185
|
-
},
|
|
5186
|
-
"interfaces": [
|
|
5187
|
-
"@mrgrain/cdk-esbuild.IBuildProvider",
|
|
5188
|
-
"@mrgrain/cdk-esbuild.ITransformProvider"
|
|
5189
|
-
],
|
|
5190
|
-
"kind": "class",
|
|
5191
|
-
"locationInModule": {
|
|
5192
|
-
"filename": "src/provider.ts",
|
|
5193
|
-
"line": 95
|
|
5194
|
-
},
|
|
5195
|
-
"methods": [
|
|
5196
|
-
{
|
|
5197
|
-
"docs": {
|
|
5198
|
-
"stability": "stable",
|
|
5199
|
-
"summary": "Get the default implementation for the Build API."
|
|
5200
|
-
},
|
|
5201
|
-
"locationInModule": {
|
|
5202
|
-
"filename": "src/provider.ts",
|
|
5203
|
-
"line": 118
|
|
5204
|
-
},
|
|
5205
|
-
"name": "defaultBuildProvider",
|
|
5206
|
-
"returns": {
|
|
5207
|
-
"type": {
|
|
5208
|
-
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider"
|
|
5209
|
-
}
|
|
5210
|
-
},
|
|
5211
|
-
"static": true
|
|
5212
|
-
},
|
|
5213
|
-
{
|
|
5214
|
-
"docs": {
|
|
5215
|
-
"stability": "stable",
|
|
5216
|
-
"summary": "Get the default implementation for the Transformation API."
|
|
5217
|
-
},
|
|
5218
|
-
"locationInModule": {
|
|
5219
|
-
"filename": "src/provider.ts",
|
|
5220
|
-
"line": 132
|
|
5221
|
-
},
|
|
5222
|
-
"name": "defaultTransformationProvider",
|
|
5223
|
-
"returns": {
|
|
5224
|
-
"type": {
|
|
5225
|
-
"fqn": "@mrgrain/cdk-esbuild.ITransformProvider"
|
|
5226
|
-
}
|
|
5227
|
-
},
|
|
5228
|
-
"static": true
|
|
5229
|
-
},
|
|
5230
|
-
{
|
|
5231
|
-
"docs": {
|
|
5232
|
-
"stability": "stable",
|
|
5233
|
-
"summary": "Set the default implementation for the Build API."
|
|
5234
|
-
},
|
|
5235
|
-
"locationInModule": {
|
|
5236
|
-
"filename": "src/provider.ts",
|
|
5237
|
-
"line": 111
|
|
5238
|
-
},
|
|
5239
|
-
"name": "overrideDefaultBuildProvider",
|
|
5240
|
-
"parameters": [
|
|
5241
|
-
{
|
|
5242
|
-
"name": "provider",
|
|
5243
|
-
"type": {
|
|
5244
|
-
"fqn": "@mrgrain/cdk-esbuild.IBuildProvider"
|
|
5245
|
-
}
|
|
5246
|
-
}
|
|
5247
|
-
],
|
|
5248
|
-
"static": true
|
|
5249
|
-
},
|
|
5250
|
-
{
|
|
5251
|
-
"docs": {
|
|
5252
|
-
"stability": "stable",
|
|
5253
|
-
"summary": "Set the default implementation for both Build and Transformation API."
|
|
5254
|
-
},
|
|
5255
|
-
"locationInModule": {
|
|
5256
|
-
"filename": "src/provider.ts",
|
|
5257
|
-
"line": 103
|
|
5258
|
-
},
|
|
5259
|
-
"name": "overrideDefaultProvider",
|
|
5260
|
-
"parameters": [
|
|
5261
|
-
{
|
|
5262
|
-
"name": "provider",
|
|
5263
|
-
"type": {
|
|
5264
|
-
"fqn": "@mrgrain/cdk-esbuild.IEsbuildProvider"
|
|
5265
|
-
}
|
|
5266
|
-
}
|
|
5267
|
-
],
|
|
5268
|
-
"static": true
|
|
5269
|
-
},
|
|
5270
|
-
{
|
|
5271
|
-
"docs": {
|
|
5272
|
-
"stability": "stable",
|
|
5273
|
-
"summary": "Set the default implementation for the Transformation API."
|
|
5274
|
-
},
|
|
5275
|
-
"locationInModule": {
|
|
5276
|
-
"filename": "src/provider.ts",
|
|
5277
|
-
"line": 125
|
|
5222
|
+
"filename": "src/provider.ts",
|
|
5223
|
+
"line": 125
|
|
5278
5224
|
},
|
|
5279
5225
|
"name": "overrideDefaultTransformationProvider",
|
|
5280
5226
|
"parameters": [
|
|
@@ -5382,7 +5328,7 @@
|
|
|
5382
5328
|
"abstract": true,
|
|
5383
5329
|
"docs": {
|
|
5384
5330
|
"default": "- `CDK_ESBUILD_MODULE_PATH` or package resolution (see description)",
|
|
5385
|
-
"remarks": "E.g. \"/home/user/.npm/node_modules/esbuild/lib/main.js\"\n\nIf not set, the module path will be determined in the following order:\n\n- Use a path from the `CDK_ESBUILD_MODULE_PATH` environment variable\n- In TypeScript, fallback to the default Node.js package resolution mechanism\n- All other languages (Python, Go, .NET, Java) use an automatic \"best effort\" resolution mechanism. \\\n
|
|
5331
|
+
"remarks": "E.g. \"/home/user/.npm/node_modules/esbuild/lib/main.js\"\n\nIf not set, the module path will be determined in the following order:\n\n- Use a path from the `CDK_ESBUILD_MODULE_PATH` environment variable\n- In TypeScript, fallback to the default Node.js package resolution mechanism\n- All other languages (Python, Go, .NET, Java) use an automatic \"best effort\" resolution mechanism. \\\n The exact algorithm of this mechanism is considered an implementation detail and should not be relied on.\n If `esbuild` cannot be found, it might be installed dynamically to a temporary location.\n To opt-out of this behavior, set either `esbuildModulePath` or `CDK_ESBUILD_MODULE_PATH` env variable.\n\nUse the static methods on `EsbuildSource` to customize the default behavior.",
|
|
5386
5332
|
"stability": "stable",
|
|
5387
5333
|
"summary": "Absolute path to the esbuild module JS file."
|
|
5388
5334
|
},
|
|
@@ -5711,8 +5657,7 @@
|
|
|
5711
5657
|
"properties": [
|
|
5712
5658
|
{
|
|
5713
5659
|
"docs": {
|
|
5714
|
-
"stability": "stable"
|
|
5715
|
-
"summary": "Determines whether this Code is inline code or not."
|
|
5660
|
+
"stability": "stable"
|
|
5716
5661
|
},
|
|
5717
5662
|
"immutable": true,
|
|
5718
5663
|
"locationInModule": {
|
|
@@ -5782,426 +5727,45 @@
|
|
|
5782
5727
|
"summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
|
|
5783
5728
|
},
|
|
5784
5729
|
"locationInModule": {
|
|
5785
|
-
"filename": "src/inline-code.ts",
|
|
5786
|
-
"line": 65
|
|
5787
|
-
},
|
|
5788
|
-
"name": "bind",
|
|
5789
|
-
"overrides": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
5790
|
-
"parameters": [
|
|
5791
|
-
{
|
|
5792
|
-
"name": "scope",
|
|
5793
|
-
"type": {
|
|
5794
|
-
"fqn": "constructs.Construct"
|
|
5795
|
-
}
|
|
5796
|
-
}
|
|
5797
|
-
],
|
|
5798
|
-
"returns": {
|
|
5799
|
-
"type": {
|
|
5800
|
-
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
5801
|
-
}
|
|
5802
|
-
}
|
|
5803
|
-
}
|
|
5804
|
-
],
|
|
5805
|
-
"name": "InlineTypeScriptCode",
|
|
5806
|
-
"properties": [
|
|
5807
|
-
{
|
|
5808
|
-
"docs": {
|
|
5809
|
-
"stability": "stable",
|
|
5810
|
-
"summary": "Determines whether this Code is inline code or not."
|
|
5811
|
-
},
|
|
5812
|
-
"immutable": true,
|
|
5813
|
-
"locationInModule": {
|
|
5814
|
-
"filename": "src/inline-code.ts",
|
|
5815
|
-
"line": 34
|
|
5816
|
-
},
|
|
5817
|
-
"name": "isInline",
|
|
5818
|
-
"overrides": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
5819
|
-
"type": {
|
|
5820
|
-
"primitive": "boolean"
|
|
5821
|
-
}
|
|
5822
|
-
}
|
|
5823
|
-
],
|
|
5824
|
-
"symbolId": "src/inline-code:InlineTypeScriptCode"
|
|
5825
|
-
},
|
|
5826
|
-
"@mrgrain/cdk-esbuild.JavaScriptAsset": {
|
|
5827
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
5828
|
-
"base": "@mrgrain/cdk-esbuild.EsbuildAsset",
|
|
5829
|
-
"docs": {
|
|
5830
|
-
"remarks": "The asset can be used by other constructs.",
|
|
5831
|
-
"stability": "stable",
|
|
5832
|
-
"summary": "Bundles the entry points and creates a CDK asset which is uploaded to the bootstrapped CDK S3 bucket during deployment."
|
|
5833
|
-
},
|
|
5834
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset",
|
|
5835
|
-
"initializer": {
|
|
5836
|
-
"docs": {
|
|
5837
|
-
"stability": "stable"
|
|
5838
|
-
},
|
|
5839
|
-
"locationInModule": {
|
|
5840
|
-
"filename": "src/asset.ts",
|
|
5841
|
-
"line": 57
|
|
5842
|
-
},
|
|
5843
|
-
"parameters": [
|
|
5844
|
-
{
|
|
5845
|
-
"name": "scope",
|
|
5846
|
-
"type": {
|
|
5847
|
-
"fqn": "constructs.Construct"
|
|
5848
|
-
}
|
|
5849
|
-
},
|
|
5850
|
-
{
|
|
5851
|
-
"name": "id",
|
|
5852
|
-
"type": {
|
|
5853
|
-
"primitive": "string"
|
|
5854
|
-
}
|
|
5855
|
-
},
|
|
5856
|
-
{
|
|
5857
|
-
"name": "props",
|
|
5858
|
-
"type": {
|
|
5859
|
-
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
5860
|
-
}
|
|
5861
|
-
}
|
|
5862
|
-
]
|
|
5863
|
-
},
|
|
5864
|
-
"kind": "class",
|
|
5865
|
-
"locationInModule": {
|
|
5866
|
-
"filename": "src/asset.ts",
|
|
5867
|
-
"line": 126
|
|
5868
|
-
},
|
|
5869
|
-
"name": "JavaScriptAsset",
|
|
5870
|
-
"symbolId": "src/asset:JavaScriptAsset"
|
|
5871
|
-
},
|
|
5872
|
-
"@mrgrain/cdk-esbuild.JavaScriptCode": {
|
|
5873
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
5874
|
-
"base": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5875
|
-
"docs": {
|
|
5876
|
-
"stability": "stable",
|
|
5877
|
-
"summary": "Represents the deployed JavaScript Code."
|
|
5878
|
-
},
|
|
5879
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCode",
|
|
5880
|
-
"initializer": {
|
|
5881
|
-
"docs": {
|
|
5882
|
-
"stability": "stable"
|
|
5883
|
-
},
|
|
5884
|
-
"locationInModule": {
|
|
5885
|
-
"filename": "src/code.ts",
|
|
5886
|
-
"line": 145
|
|
5887
|
-
},
|
|
5888
|
-
"parameters": [
|
|
5889
|
-
{
|
|
5890
|
-
"docs": {
|
|
5891
|
-
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
5892
|
-
"stability": "stable",
|
|
5893
|
-
"summary": "A path or list or map of paths to the entry points of your code."
|
|
5894
|
-
},
|
|
5895
|
-
"name": "entryPoints",
|
|
5896
|
-
"type": {
|
|
5897
|
-
"union": {
|
|
5898
|
-
"types": [
|
|
5899
|
-
{
|
|
5900
|
-
"primitive": "string"
|
|
5901
|
-
},
|
|
5902
|
-
{
|
|
5903
|
-
"collection": {
|
|
5904
|
-
"elementtype": {
|
|
5905
|
-
"primitive": "string"
|
|
5906
|
-
},
|
|
5907
|
-
"kind": "array"
|
|
5908
|
-
}
|
|
5909
|
-
},
|
|
5910
|
-
{
|
|
5911
|
-
"collection": {
|
|
5912
|
-
"elementtype": {
|
|
5913
|
-
"primitive": "string"
|
|
5914
|
-
},
|
|
5915
|
-
"kind": "map"
|
|
5916
|
-
}
|
|
5917
|
-
}
|
|
5918
|
-
]
|
|
5919
|
-
}
|
|
5920
|
-
}
|
|
5921
|
-
},
|
|
5922
|
-
{
|
|
5923
|
-
"docs": {
|
|
5924
|
-
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=node`\n- `target=nodeX` with X being the major node version running locally",
|
|
5925
|
-
"stability": "stable",
|
|
5926
|
-
"summary": "Props to change the behavior of the bundler."
|
|
5927
|
-
},
|
|
5928
|
-
"name": "props",
|
|
5929
|
-
"optional": true,
|
|
5930
|
-
"type": {
|
|
5931
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps"
|
|
5932
|
-
}
|
|
5933
|
-
}
|
|
5934
|
-
]
|
|
5935
|
-
},
|
|
5936
|
-
"kind": "class",
|
|
5937
|
-
"locationInModule": {
|
|
5938
|
-
"filename": "src/code.ts",
|
|
5939
|
-
"line": 136
|
|
5940
|
-
},
|
|
5941
|
-
"methods": [
|
|
5942
|
-
{
|
|
5943
|
-
"docs": {
|
|
5944
|
-
"stability": "stable"
|
|
5945
|
-
},
|
|
5946
|
-
"locationInModule": {
|
|
5947
|
-
"filename": "src/code.ts",
|
|
5948
|
-
"line": 137
|
|
5949
|
-
},
|
|
5950
|
-
"name": "getAsset",
|
|
5951
|
-
"overrides": "@mrgrain/cdk-esbuild.EsbuildCode",
|
|
5952
|
-
"parameters": [
|
|
5953
|
-
{
|
|
5954
|
-
"name": "scope",
|
|
5955
|
-
"type": {
|
|
5956
|
-
"fqn": "constructs.Construct"
|
|
5957
|
-
}
|
|
5958
|
-
}
|
|
5959
|
-
],
|
|
5960
|
-
"protected": true,
|
|
5961
|
-
"returns": {
|
|
5962
|
-
"type": {
|
|
5963
|
-
"fqn": "@mrgrain/cdk-esbuild.EsbuildAsset"
|
|
5964
|
-
}
|
|
5965
|
-
}
|
|
5966
|
-
}
|
|
5967
|
-
],
|
|
5968
|
-
"name": "JavaScriptCode",
|
|
5969
|
-
"symbolId": "src/code:JavaScriptCode"
|
|
5970
|
-
},
|
|
5971
|
-
"@mrgrain/cdk-esbuild.JavaScriptCodeProps": {
|
|
5972
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
5973
|
-
"datatype": true,
|
|
5974
|
-
"docs": {
|
|
5975
|
-
"stability": "stable"
|
|
5976
|
-
},
|
|
5977
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptCodeProps",
|
|
5978
|
-
"interfaces": [
|
|
5979
|
-
"@mrgrain/cdk-esbuild.BundlerProps"
|
|
5980
|
-
],
|
|
5981
|
-
"kind": "interface",
|
|
5982
|
-
"locationInModule": {
|
|
5983
|
-
"filename": "src/code.ts",
|
|
5984
|
-
"line": 16
|
|
5985
|
-
},
|
|
5986
|
-
"name": "JavaScriptCodeProps",
|
|
5987
|
-
"properties": [
|
|
5988
|
-
{
|
|
5989
|
-
"abstract": true,
|
|
5990
|
-
"docs": {
|
|
5991
|
-
"remarks": "As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed.\n\nDefaults to a hash of all files in the resulting bundle.",
|
|
5992
|
-
"stability": "stable",
|
|
5993
|
-
"summary": "A hash of this asset, which is available at construction time."
|
|
5994
|
-
},
|
|
5995
|
-
"immutable": true,
|
|
5996
|
-
"locationInModule": {
|
|
5997
|
-
"filename": "src/asset.ts",
|
|
5998
|
-
"line": 20
|
|
5999
|
-
},
|
|
6000
|
-
"name": "assetHash",
|
|
6001
|
-
"optional": true,
|
|
6002
|
-
"type": {
|
|
6003
|
-
"primitive": "string"
|
|
6004
|
-
}
|
|
6005
|
-
}
|
|
6006
|
-
],
|
|
6007
|
-
"symbolId": "src/code:JavaScriptCodeProps"
|
|
6008
|
-
},
|
|
6009
|
-
"@mrgrain/cdk-esbuild.JavaScriptSource": {
|
|
6010
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
6011
|
-
"docs": {
|
|
6012
|
-
"stability": "stable"
|
|
6013
|
-
},
|
|
6014
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptSource",
|
|
6015
|
-
"initializer": {
|
|
6016
|
-
"docs": {
|
|
6017
|
-
"stability": "stable"
|
|
6018
|
-
},
|
|
6019
|
-
"locationInModule": {
|
|
6020
|
-
"filename": "src/source.ts",
|
|
6021
|
-
"line": 113
|
|
6022
|
-
},
|
|
6023
|
-
"parameters": [
|
|
6024
|
-
{
|
|
6025
|
-
"docs": {
|
|
6026
|
-
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
6027
|
-
"stability": "stable",
|
|
6028
|
-
"summary": "A path or list or map of paths to the entry points of your code."
|
|
6029
|
-
},
|
|
6030
|
-
"name": "entryPoints",
|
|
6031
|
-
"type": {
|
|
6032
|
-
"union": {
|
|
6033
|
-
"types": [
|
|
6034
|
-
{
|
|
6035
|
-
"primitive": "string"
|
|
6036
|
-
},
|
|
6037
|
-
{
|
|
6038
|
-
"collection": {
|
|
6039
|
-
"elementtype": {
|
|
6040
|
-
"primitive": "string"
|
|
6041
|
-
},
|
|
6042
|
-
"kind": "array"
|
|
6043
|
-
}
|
|
6044
|
-
},
|
|
6045
|
-
{
|
|
6046
|
-
"collection": {
|
|
6047
|
-
"elementtype": {
|
|
6048
|
-
"primitive": "string"
|
|
6049
|
-
},
|
|
6050
|
-
"kind": "map"
|
|
6051
|
-
}
|
|
6052
|
-
}
|
|
6053
|
-
]
|
|
6054
|
-
}
|
|
6055
|
-
}
|
|
6056
|
-
},
|
|
6057
|
-
{
|
|
6058
|
-
"docs": {
|
|
6059
|
-
"remarks": "Default values for `props.buildOptions`:\n- `bundle=true`\n- `platform=browser`",
|
|
6060
|
-
"stability": "stable",
|
|
6061
|
-
"summary": "Props to change the behavior of the bundler."
|
|
6062
|
-
},
|
|
6063
|
-
"name": "props",
|
|
6064
|
-
"optional": true,
|
|
6065
|
-
"type": {
|
|
6066
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptSourceProps"
|
|
6067
|
-
}
|
|
6068
|
-
}
|
|
6069
|
-
]
|
|
6070
|
-
},
|
|
6071
|
-
"interfaces": [
|
|
6072
|
-
"aws-cdk-lib.aws_s3_deployment.ISource"
|
|
6073
|
-
],
|
|
6074
|
-
"kind": "class",
|
|
6075
|
-
"locationInModule": {
|
|
6076
|
-
"filename": "src/source.ts",
|
|
6077
|
-
"line": 107
|
|
6078
|
-
},
|
|
6079
|
-
"methods": [
|
|
6080
|
-
{
|
|
6081
|
-
"docs": {
|
|
6082
|
-
"stability": "stable",
|
|
6083
|
-
"summary": "Binds the source to a bucket deployment."
|
|
6084
|
-
},
|
|
6085
|
-
"locationInModule": {
|
|
6086
|
-
"filename": "src/source.ts",
|
|
6087
|
-
"line": 73
|
|
5730
|
+
"filename": "src/inline-code.ts",
|
|
5731
|
+
"line": 65
|
|
6088
5732
|
},
|
|
6089
5733
|
"name": "bind",
|
|
6090
|
-
"overrides": "aws-cdk-lib.
|
|
5734
|
+
"overrides": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
6091
5735
|
"parameters": [
|
|
6092
5736
|
{
|
|
6093
5737
|
"name": "scope",
|
|
6094
5738
|
"type": {
|
|
6095
5739
|
"fqn": "constructs.Construct"
|
|
6096
5740
|
}
|
|
6097
|
-
},
|
|
6098
|
-
{
|
|
6099
|
-
"name": "context",
|
|
6100
|
-
"optional": true,
|
|
6101
|
-
"type": {
|
|
6102
|
-
"fqn": "aws-cdk-lib.aws_s3_deployment.DeploymentSourceContext"
|
|
6103
|
-
}
|
|
6104
5741
|
}
|
|
6105
5742
|
],
|
|
6106
5743
|
"returns": {
|
|
6107
5744
|
"type": {
|
|
6108
|
-
"fqn": "aws-cdk-lib.
|
|
5745
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
6109
5746
|
}
|
|
6110
5747
|
}
|
|
6111
5748
|
}
|
|
6112
5749
|
],
|
|
6113
|
-
"name": "
|
|
5750
|
+
"name": "InlineTypeScriptCode",
|
|
6114
5751
|
"properties": [
|
|
6115
5752
|
{
|
|
6116
5753
|
"docs": {
|
|
6117
5754
|
"stability": "stable"
|
|
6118
5755
|
},
|
|
6119
|
-
"locationInModule": {
|
|
6120
|
-
"filename": "src/source.ts",
|
|
6121
|
-
"line": 27
|
|
6122
|
-
},
|
|
6123
|
-
"name": "asset",
|
|
6124
|
-
"protected": true,
|
|
6125
|
-
"type": {
|
|
6126
|
-
"union": {
|
|
6127
|
-
"types": [
|
|
6128
|
-
{
|
|
6129
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
|
|
6130
|
-
},
|
|
6131
|
-
{
|
|
6132
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
|
|
6133
|
-
}
|
|
6134
|
-
]
|
|
6135
|
-
}
|
|
6136
|
-
}
|
|
6137
|
-
},
|
|
6138
|
-
{
|
|
6139
|
-
"docs": {
|
|
6140
|
-
"stability": "stable"
|
|
6141
|
-
},
|
|
6142
|
-
"locationInModule": {
|
|
6143
|
-
"filename": "src/source.ts",
|
|
6144
|
-
"line": 111
|
|
6145
|
-
},
|
|
6146
|
-
"name": "assetClass",
|
|
6147
|
-
"type": {
|
|
6148
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
|
|
6149
|
-
}
|
|
6150
|
-
},
|
|
6151
|
-
{
|
|
6152
|
-
"docs": {
|
|
6153
|
-
"stability": "stable"
|
|
6154
|
-
},
|
|
6155
|
-
"locationInModule": {
|
|
6156
|
-
"filename": "src/source.ts",
|
|
6157
|
-
"line": 25
|
|
6158
|
-
},
|
|
6159
|
-
"name": "props",
|
|
6160
|
-
"protected": true,
|
|
6161
|
-
"type": {
|
|
6162
|
-
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
6163
|
-
}
|
|
6164
|
-
}
|
|
6165
|
-
],
|
|
6166
|
-
"symbolId": "src/source:JavaScriptSource"
|
|
6167
|
-
},
|
|
6168
|
-
"@mrgrain/cdk-esbuild.JavaScriptSourceProps": {
|
|
6169
|
-
"assembly": "@mrgrain/cdk-esbuild",
|
|
6170
|
-
"datatype": true,
|
|
6171
|
-
"docs": {
|
|
6172
|
-
"stability": "stable"
|
|
6173
|
-
},
|
|
6174
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptSourceProps",
|
|
6175
|
-
"interfaces": [
|
|
6176
|
-
"@mrgrain/cdk-esbuild.BundlerProps"
|
|
6177
|
-
],
|
|
6178
|
-
"kind": "interface",
|
|
6179
|
-
"locationInModule": {
|
|
6180
|
-
"filename": "src/source.ts",
|
|
6181
|
-
"line": 12
|
|
6182
|
-
},
|
|
6183
|
-
"name": "JavaScriptSourceProps",
|
|
6184
|
-
"properties": [
|
|
6185
|
-
{
|
|
6186
|
-
"abstract": true,
|
|
6187
|
-
"docs": {
|
|
6188
|
-
"remarks": "As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed.\n\nDefaults to a hash of all files in the resulting bundle.",
|
|
6189
|
-
"stability": "stable",
|
|
6190
|
-
"summary": "A hash of this asset, which is available at construction time."
|
|
6191
|
-
},
|
|
6192
5756
|
"immutable": true,
|
|
6193
5757
|
"locationInModule": {
|
|
6194
|
-
"filename": "src/
|
|
6195
|
-
"line":
|
|
5758
|
+
"filename": "src/inline-code.ts",
|
|
5759
|
+
"line": 34
|
|
6196
5760
|
},
|
|
6197
|
-
"name": "
|
|
6198
|
-
"
|
|
5761
|
+
"name": "isInline",
|
|
5762
|
+
"overrides": "aws-cdk-lib.aws_lambda.InlineCode",
|
|
6199
5763
|
"type": {
|
|
6200
|
-
"primitive": "
|
|
5764
|
+
"primitive": "boolean"
|
|
6201
5765
|
}
|
|
6202
5766
|
}
|
|
6203
5767
|
],
|
|
6204
|
-
"symbolId": "src/
|
|
5768
|
+
"symbolId": "src/inline-code:InlineTypeScriptCode"
|
|
6205
5769
|
},
|
|
6206
5770
|
"@mrgrain/cdk-esbuild.ProviderBuildOptions": {
|
|
6207
5771
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
@@ -6287,7 +5851,7 @@
|
|
|
6287
5851
|
"kind": "interface",
|
|
6288
5852
|
"locationInModule": {
|
|
6289
5853
|
"filename": "src/esbuild-types.ts",
|
|
6290
|
-
"line":
|
|
5854
|
+
"line": 243
|
|
6291
5855
|
},
|
|
6292
5856
|
"name": "TransformOptions",
|
|
6293
5857
|
"properties": [
|
|
@@ -6300,7 +5864,7 @@
|
|
|
6300
5864
|
"immutable": true,
|
|
6301
5865
|
"locationInModule": {
|
|
6302
5866
|
"filename": "src/esbuild-types.ts",
|
|
6303
|
-
"line":
|
|
5867
|
+
"line": 249
|
|
6304
5868
|
},
|
|
6305
5869
|
"name": "banner",
|
|
6306
5870
|
"optional": true,
|
|
@@ -6417,7 +5981,7 @@
|
|
|
6417
5981
|
"immutable": true,
|
|
6418
5982
|
"locationInModule": {
|
|
6419
5983
|
"filename": "src/esbuild-types.ts",
|
|
6420
|
-
"line":
|
|
5984
|
+
"line": 251
|
|
6421
5985
|
},
|
|
6422
5986
|
"name": "footer",
|
|
6423
5987
|
"optional": true,
|
|
@@ -6638,7 +6202,7 @@
|
|
|
6638
6202
|
"immutable": true,
|
|
6639
6203
|
"locationInModule": {
|
|
6640
6204
|
"filename": "src/esbuild-types.ts",
|
|
6641
|
-
"line":
|
|
6205
|
+
"line": 247
|
|
6642
6206
|
},
|
|
6643
6207
|
"name": "loader",
|
|
6644
6208
|
"optional": true,
|
|
@@ -6900,7 +6464,7 @@
|
|
|
6900
6464
|
"immutable": true,
|
|
6901
6465
|
"locationInModule": {
|
|
6902
6466
|
"filename": "src/esbuild-types.ts",
|
|
6903
|
-
"line":
|
|
6467
|
+
"line": 245
|
|
6904
6468
|
},
|
|
6905
6469
|
"name": "sourcefile",
|
|
6906
6470
|
"optional": true,
|
|
@@ -7058,7 +6622,7 @@
|
|
|
7058
6622
|
"primitive": "string"
|
|
7059
6623
|
},
|
|
7060
6624
|
{
|
|
7061
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
6625
|
+
"fqn": "@mrgrain/cdk-esbuild.TsconfigRaw"
|
|
7062
6626
|
}
|
|
7063
6627
|
]
|
|
7064
6628
|
}
|
|
@@ -7122,19 +6686,19 @@
|
|
|
7122
6686
|
],
|
|
7123
6687
|
"symbolId": "src/inline-code:TransformerProps"
|
|
7124
6688
|
},
|
|
7125
|
-
"@mrgrain/cdk-esbuild.
|
|
6689
|
+
"@mrgrain/cdk-esbuild.TsconfigRaw": {
|
|
7126
6690
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
7127
6691
|
"datatype": true,
|
|
7128
6692
|
"docs": {
|
|
7129
6693
|
"stability": "stable"
|
|
7130
6694
|
},
|
|
7131
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
6695
|
+
"fqn": "@mrgrain/cdk-esbuild.TsconfigRaw",
|
|
7132
6696
|
"kind": "interface",
|
|
7133
6697
|
"locationInModule": {
|
|
7134
6698
|
"filename": "src/esbuild-types.ts",
|
|
7135
|
-
"line":
|
|
6699
|
+
"line": 93
|
|
7136
6700
|
},
|
|
7137
|
-
"name": "
|
|
6701
|
+
"name": "TsconfigRaw",
|
|
7138
6702
|
"properties": [
|
|
7139
6703
|
{
|
|
7140
6704
|
"abstract": true,
|
|
@@ -7144,7 +6708,7 @@
|
|
|
7144
6708
|
"immutable": true,
|
|
7145
6709
|
"locationInModule": {
|
|
7146
6710
|
"filename": "src/esbuild-types.ts",
|
|
7147
|
-
"line":
|
|
6711
|
+
"line": 94
|
|
7148
6712
|
},
|
|
7149
6713
|
"name": "compilerOptions",
|
|
7150
6714
|
"optional": true,
|
|
@@ -7153,11 +6717,11 @@
|
|
|
7153
6717
|
}
|
|
7154
6718
|
}
|
|
7155
6719
|
],
|
|
7156
|
-
"symbolId": "src/esbuild-types:
|
|
6720
|
+
"symbolId": "src/esbuild-types:TsconfigRaw"
|
|
7157
6721
|
},
|
|
7158
6722
|
"@mrgrain/cdk-esbuild.TypeScriptAsset": {
|
|
7159
6723
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
7160
|
-
"base": "
|
|
6724
|
+
"base": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
7161
6725
|
"docs": {
|
|
7162
6726
|
"remarks": "The asset can be used by other constructs.",
|
|
7163
6727
|
"stability": "stable",
|
|
@@ -7170,7 +6734,7 @@
|
|
|
7170
6734
|
},
|
|
7171
6735
|
"locationInModule": {
|
|
7172
6736
|
"filename": "src/asset.ts",
|
|
7173
|
-
"line":
|
|
6737
|
+
"line": 41
|
|
7174
6738
|
},
|
|
7175
6739
|
"parameters": [
|
|
7176
6740
|
{
|
|
@@ -7188,7 +6752,7 @@
|
|
|
7188
6752
|
{
|
|
7189
6753
|
"name": "props",
|
|
7190
6754
|
"type": {
|
|
7191
|
-
"fqn": "@mrgrain/cdk-esbuild.
|
|
6755
|
+
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAssetProps"
|
|
7192
6756
|
}
|
|
7193
6757
|
}
|
|
7194
6758
|
]
|
|
@@ -7196,14 +6760,73 @@
|
|
|
7196
6760
|
"kind": "class",
|
|
7197
6761
|
"locationInModule": {
|
|
7198
6762
|
"filename": "src/asset.ts",
|
|
7199
|
-
"line":
|
|
6763
|
+
"line": 37
|
|
7200
6764
|
},
|
|
7201
6765
|
"name": "TypeScriptAsset",
|
|
7202
6766
|
"symbolId": "src/asset:TypeScriptAsset"
|
|
7203
6767
|
},
|
|
6768
|
+
"@mrgrain/cdk-esbuild.TypeScriptAssetProps": {
|
|
6769
|
+
"assembly": "@mrgrain/cdk-esbuild",
|
|
6770
|
+
"datatype": true,
|
|
6771
|
+
"docs": {
|
|
6772
|
+
"stability": "stable"
|
|
6773
|
+
},
|
|
6774
|
+
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAssetProps",
|
|
6775
|
+
"interfaces": [
|
|
6776
|
+
"@mrgrain/cdk-esbuild.TypeScriptCodeProps"
|
|
6777
|
+
],
|
|
6778
|
+
"kind": "interface",
|
|
6779
|
+
"locationInModule": {
|
|
6780
|
+
"filename": "src/asset.ts",
|
|
6781
|
+
"line": 9
|
|
6782
|
+
},
|
|
6783
|
+
"name": "TypeScriptAssetProps",
|
|
6784
|
+
"properties": [
|
|
6785
|
+
{
|
|
6786
|
+
"abstract": true,
|
|
6787
|
+
"docs": {
|
|
6788
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
6789
|
+
"stability": "stable",
|
|
6790
|
+
"summary": "A path or list or map of paths to the entry points of your code."
|
|
6791
|
+
},
|
|
6792
|
+
"immutable": true,
|
|
6793
|
+
"locationInModule": {
|
|
6794
|
+
"filename": "src/asset.ts",
|
|
6795
|
+
"line": 26
|
|
6796
|
+
},
|
|
6797
|
+
"name": "entryPoints",
|
|
6798
|
+
"type": {
|
|
6799
|
+
"union": {
|
|
6800
|
+
"types": [
|
|
6801
|
+
{
|
|
6802
|
+
"primitive": "string"
|
|
6803
|
+
},
|
|
6804
|
+
{
|
|
6805
|
+
"collection": {
|
|
6806
|
+
"elementtype": {
|
|
6807
|
+
"primitive": "string"
|
|
6808
|
+
},
|
|
6809
|
+
"kind": "array"
|
|
6810
|
+
}
|
|
6811
|
+
},
|
|
6812
|
+
{
|
|
6813
|
+
"collection": {
|
|
6814
|
+
"elementtype": {
|
|
6815
|
+
"primitive": "string"
|
|
6816
|
+
},
|
|
6817
|
+
"kind": "map"
|
|
6818
|
+
}
|
|
6819
|
+
}
|
|
6820
|
+
]
|
|
6821
|
+
}
|
|
6822
|
+
}
|
|
6823
|
+
}
|
|
6824
|
+
],
|
|
6825
|
+
"symbolId": "src/asset:TypeScriptAssetProps"
|
|
6826
|
+
},
|
|
7204
6827
|
"@mrgrain/cdk-esbuild.TypeScriptCode": {
|
|
7205
6828
|
"assembly": "@mrgrain/cdk-esbuild",
|
|
7206
|
-
"base": "
|
|
6829
|
+
"base": "aws-cdk-lib.aws_lambda.Code",
|
|
7207
6830
|
"docs": {
|
|
7208
6831
|
"stability": "stable",
|
|
7209
6832
|
"summary": "Represents the deployed TypeScript Code."
|
|
@@ -7215,12 +6838,12 @@
|
|
|
7215
6838
|
},
|
|
7216
6839
|
"locationInModule": {
|
|
7217
6840
|
"filename": "src/code.ts",
|
|
7218
|
-
"line":
|
|
6841
|
+
"line": 44
|
|
7219
6842
|
},
|
|
7220
6843
|
"parameters": [
|
|
7221
6844
|
{
|
|
7222
6845
|
"docs": {
|
|
7223
|
-
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n
|
|
6846
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
7224
6847
|
"stability": "stable",
|
|
7225
6848
|
"summary": "A path or list or map of paths to the entry points of your code."
|
|
7226
6849
|
},
|
|
@@ -7268,19 +6891,20 @@
|
|
|
7268
6891
|
"kind": "class",
|
|
7269
6892
|
"locationInModule": {
|
|
7270
6893
|
"filename": "src/code.ts",
|
|
7271
|
-
"line":
|
|
6894
|
+
"line": 33
|
|
7272
6895
|
},
|
|
7273
6896
|
"methods": [
|
|
7274
6897
|
{
|
|
7275
6898
|
"docs": {
|
|
7276
|
-
"stability": "stable"
|
|
6899
|
+
"stability": "stable",
|
|
6900
|
+
"summary": "Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun."
|
|
7277
6901
|
},
|
|
7278
6902
|
"locationInModule": {
|
|
7279
6903
|
"filename": "src/code.ts",
|
|
7280
|
-
"line":
|
|
6904
|
+
"line": 89
|
|
7281
6905
|
},
|
|
7282
|
-
"name": "
|
|
7283
|
-
"overrides": "
|
|
6906
|
+
"name": "bind",
|
|
6907
|
+
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
7284
6908
|
"parameters": [
|
|
7285
6909
|
{
|
|
7286
6910
|
"name": "scope",
|
|
@@ -7289,15 +6913,59 @@
|
|
|
7289
6913
|
}
|
|
7290
6914
|
}
|
|
7291
6915
|
],
|
|
7292
|
-
"protected": true,
|
|
7293
6916
|
"returns": {
|
|
7294
6917
|
"type": {
|
|
7295
|
-
"fqn": "
|
|
6918
|
+
"fqn": "aws-cdk-lib.aws_lambda.CodeConfig"
|
|
7296
6919
|
}
|
|
7297
6920
|
}
|
|
6921
|
+
},
|
|
6922
|
+
{
|
|
6923
|
+
"docs": {
|
|
6924
|
+
"remarks": "Specifically it's required to allow assets to add\nmetadata for tooling like SAM CLI to be able to find their origins.",
|
|
6925
|
+
"stability": "stable",
|
|
6926
|
+
"summary": "Called after the CFN function resource has been created to allow the code class to bind to it."
|
|
6927
|
+
},
|
|
6928
|
+
"locationInModule": {
|
|
6929
|
+
"filename": "src/code.ts",
|
|
6930
|
+
"line": 117
|
|
6931
|
+
},
|
|
6932
|
+
"name": "bindToResource",
|
|
6933
|
+
"overrides": "aws-cdk-lib.aws_lambda.Code",
|
|
6934
|
+
"parameters": [
|
|
6935
|
+
{
|
|
6936
|
+
"name": "resource",
|
|
6937
|
+
"type": {
|
|
6938
|
+
"fqn": "aws-cdk-lib.CfnResource"
|
|
6939
|
+
}
|
|
6940
|
+
},
|
|
6941
|
+
{
|
|
6942
|
+
"name": "options",
|
|
6943
|
+
"optional": true,
|
|
6944
|
+
"type": {
|
|
6945
|
+
"fqn": "aws-cdk-lib.aws_lambda.ResourceBindOptions"
|
|
6946
|
+
}
|
|
6947
|
+
}
|
|
6948
|
+
]
|
|
7298
6949
|
}
|
|
7299
6950
|
],
|
|
7300
6951
|
"name": "TypeScriptCode",
|
|
6952
|
+
"properties": [
|
|
6953
|
+
{
|
|
6954
|
+
"docs": {
|
|
6955
|
+
"deprecated": "this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().",
|
|
6956
|
+
"stability": "deprecated",
|
|
6957
|
+
"summary": "Determines whether this Code is inline code or not."
|
|
6958
|
+
},
|
|
6959
|
+
"locationInModule": {
|
|
6960
|
+
"filename": "src/code.ts",
|
|
6961
|
+
"line": 42
|
|
6962
|
+
},
|
|
6963
|
+
"name": "isInline",
|
|
6964
|
+
"type": {
|
|
6965
|
+
"primitive": "boolean"
|
|
6966
|
+
}
|
|
6967
|
+
}
|
|
6968
|
+
],
|
|
7301
6969
|
"symbolId": "src/code:TypeScriptCode"
|
|
7302
6970
|
},
|
|
7303
6971
|
"@mrgrain/cdk-esbuild.TypeScriptCodeProps": {
|
|
@@ -7313,7 +6981,7 @@
|
|
|
7313
6981
|
"kind": "interface",
|
|
7314
6982
|
"locationInModule": {
|
|
7315
6983
|
"filename": "src/code.ts",
|
|
7316
|
-
"line":
|
|
6984
|
+
"line": 14
|
|
7317
6985
|
},
|
|
7318
6986
|
"name": "TypeScriptCodeProps",
|
|
7319
6987
|
"properties": [
|
|
@@ -7326,8 +6994,8 @@
|
|
|
7326
6994
|
},
|
|
7327
6995
|
"immutable": true,
|
|
7328
6996
|
"locationInModule": {
|
|
7329
|
-
"filename": "src/
|
|
7330
|
-
"line":
|
|
6997
|
+
"filename": "src/code.ts",
|
|
6998
|
+
"line": 24
|
|
7331
6999
|
},
|
|
7332
7000
|
"name": "assetHash",
|
|
7333
7001
|
"optional": true,
|
|
@@ -7350,12 +7018,12 @@
|
|
|
7350
7018
|
},
|
|
7351
7019
|
"locationInModule": {
|
|
7352
7020
|
"filename": "src/source.ts",
|
|
7353
|
-
"line":
|
|
7021
|
+
"line": 19
|
|
7354
7022
|
},
|
|
7355
7023
|
"parameters": [
|
|
7356
7024
|
{
|
|
7357
7025
|
"docs": {
|
|
7358
|
-
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n
|
|
7026
|
+
"remarks": "Relative paths are by default resolved from the current working directory.\nTo change the working directory, see `buildOptions.absWorkingDir`.\n\nAbsolute paths can be used if files are part of the working directory.\n\nExamples:\n - `'src/index.ts'`\n - `require.resolve('./lambda')`\n - `['src/index.ts', 'src/util.ts']`\n - `{one: 'src/two.ts', two: 'src/one.ts'}`",
|
|
7359
7027
|
"stability": "stable",
|
|
7360
7028
|
"summary": "A path or list or map of paths to the entry points of your code."
|
|
7361
7029
|
},
|
|
@@ -7406,7 +7074,7 @@
|
|
|
7406
7074
|
"kind": "class",
|
|
7407
7075
|
"locationInModule": {
|
|
7408
7076
|
"filename": "src/source.ts",
|
|
7409
|
-
"line":
|
|
7077
|
+
"line": 15
|
|
7410
7078
|
},
|
|
7411
7079
|
"methods": [
|
|
7412
7080
|
{
|
|
@@ -7416,7 +7084,7 @@
|
|
|
7416
7084
|
},
|
|
7417
7085
|
"locationInModule": {
|
|
7418
7086
|
"filename": "src/source.ts",
|
|
7419
|
-
"line":
|
|
7087
|
+
"line": 64
|
|
7420
7088
|
},
|
|
7421
7089
|
"name": "bind",
|
|
7422
7090
|
"overrides": "aws-cdk-lib.aws_s3_deployment.ISource",
|
|
@@ -7443,58 +7111,6 @@
|
|
|
7443
7111
|
}
|
|
7444
7112
|
],
|
|
7445
7113
|
"name": "TypeScriptSource",
|
|
7446
|
-
"properties": [
|
|
7447
|
-
{
|
|
7448
|
-
"docs": {
|
|
7449
|
-
"stability": "stable"
|
|
7450
|
-
},
|
|
7451
|
-
"locationInModule": {
|
|
7452
|
-
"filename": "src/source.ts",
|
|
7453
|
-
"line": 27
|
|
7454
|
-
},
|
|
7455
|
-
"name": "asset",
|
|
7456
|
-
"protected": true,
|
|
7457
|
-
"type": {
|
|
7458
|
-
"union": {
|
|
7459
|
-
"types": [
|
|
7460
|
-
{
|
|
7461
|
-
"fqn": "@mrgrain/cdk-esbuild.JavaScriptAsset"
|
|
7462
|
-
},
|
|
7463
|
-
{
|
|
7464
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
|
|
7465
|
-
}
|
|
7466
|
-
]
|
|
7467
|
-
}
|
|
7468
|
-
}
|
|
7469
|
-
},
|
|
7470
|
-
{
|
|
7471
|
-
"docs": {
|
|
7472
|
-
"stability": "stable"
|
|
7473
|
-
},
|
|
7474
|
-
"locationInModule": {
|
|
7475
|
-
"filename": "src/source.ts",
|
|
7476
|
-
"line": 152
|
|
7477
|
-
},
|
|
7478
|
-
"name": "assetClass",
|
|
7479
|
-
"type": {
|
|
7480
|
-
"fqn": "@mrgrain/cdk-esbuild.TypeScriptAsset"
|
|
7481
|
-
}
|
|
7482
|
-
},
|
|
7483
|
-
{
|
|
7484
|
-
"docs": {
|
|
7485
|
-
"stability": "stable"
|
|
7486
|
-
},
|
|
7487
|
-
"locationInModule": {
|
|
7488
|
-
"filename": "src/source.ts",
|
|
7489
|
-
"line": 25
|
|
7490
|
-
},
|
|
7491
|
-
"name": "props",
|
|
7492
|
-
"protected": true,
|
|
7493
|
-
"type": {
|
|
7494
|
-
"fqn": "@mrgrain/cdk-esbuild.AssetProps"
|
|
7495
|
-
}
|
|
7496
|
-
}
|
|
7497
|
-
],
|
|
7498
7114
|
"symbolId": "src/source:TypeScriptSource"
|
|
7499
7115
|
},
|
|
7500
7116
|
"@mrgrain/cdk-esbuild.TypeScriptSourceProps": {
|
|
@@ -7505,7 +7121,7 @@
|
|
|
7505
7121
|
},
|
|
7506
7122
|
"fqn": "@mrgrain/cdk-esbuild.TypeScriptSourceProps",
|
|
7507
7123
|
"interfaces": [
|
|
7508
|
-
"@mrgrain/cdk-esbuild.
|
|
7124
|
+
"@mrgrain/cdk-esbuild.TypeScriptCodeProps"
|
|
7509
7125
|
],
|
|
7510
7126
|
"kind": "interface",
|
|
7511
7127
|
"locationInModule": {
|
|
@@ -7513,29 +7129,9 @@
|
|
|
7513
7129
|
"line": 13
|
|
7514
7130
|
},
|
|
7515
7131
|
"name": "TypeScriptSourceProps",
|
|
7516
|
-
"properties": [
|
|
7517
|
-
{
|
|
7518
|
-
"abstract": true,
|
|
7519
|
-
"docs": {
|
|
7520
|
-
"remarks": "As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed.\n\nDefaults to a hash of all files in the resulting bundle.",
|
|
7521
|
-
"stability": "stable",
|
|
7522
|
-
"summary": "A hash of this asset, which is available at construction time."
|
|
7523
|
-
},
|
|
7524
|
-
"immutable": true,
|
|
7525
|
-
"locationInModule": {
|
|
7526
|
-
"filename": "src/asset.ts",
|
|
7527
|
-
"line": 20
|
|
7528
|
-
},
|
|
7529
|
-
"name": "assetHash",
|
|
7530
|
-
"optional": true,
|
|
7531
|
-
"type": {
|
|
7532
|
-
"primitive": "string"
|
|
7533
|
-
}
|
|
7534
|
-
}
|
|
7535
|
-
],
|
|
7536
7132
|
"symbolId": "src/source:TypeScriptSourceProps"
|
|
7537
7133
|
}
|
|
7538
7134
|
},
|
|
7539
|
-
"version": "
|
|
7540
|
-
"fingerprint": "
|
|
7135
|
+
"version": "5.0.0-rc.0",
|
|
7136
|
+
"fingerprint": "izieLWowcqFUmfXJFGbOE5tn3wEAfg8I7xSbRvD/J30="
|
|
7541
7137
|
}
|