@mrgrain/cdk-esbuild 4.0.0-alpha.5 → 4.0.0-alpha.8

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/.projenrc.ts CHANGED
@@ -85,14 +85,10 @@ const project = new awscdk.AwsCdkConstructLibrary({
85
85
  devDeps: [
86
86
  '@aws-cdk/aws-synthetics-alpha@2.0.0-alpha.11',
87
87
  '@types/eslint',
88
- '@types/which',
89
88
  'esbuild@^0.14.0',
90
89
  'jest-mock',
91
90
  'ts-morph',
92
91
  ],
93
- bundledDeps: [
94
- 'which',
95
- ],
96
92
 
97
93
  // Ignore files
98
94
  gitignore: [
@@ -120,6 +116,16 @@ const project = new awscdk.AwsCdkConstructLibrary({
120
116
  ],
121
117
  });
122
118
 
119
+ // release only via manual trigger
120
+ const publishTask = project.release?.publisher?.publishToGit({
121
+ changelogFile: 'dist/changelog.md',
122
+ versionFile: 'dist/version.txt',
123
+ releaseTagFile: 'dist/releasetag.txt',
124
+ projectChangelogFile: 'CHANGELOG.md',
125
+ gitBranch: 'main',
126
+ });
127
+ project.tasks.tryFind('release')?.spawn(publishTask!);
128
+
123
129
  // add additional tags on npm
124
130
  project.tryFindObjectFile('.github/workflows/release.yml')?.addToArray(
125
131
  'jobs.release_npm.steps',
package/API.md CHANGED
@@ -1,5 +1,114 @@
1
1
  # API Reference <a name="API Reference"></a>
2
2
 
3
+ ## Constructs <a name="Constructs"></a>
4
+
5
+ ### EsbuildAsset <a name="@mrgrain/cdk-esbuild.EsbuildAsset"></a>
6
+
7
+ Represents a generic esbuild asset.
8
+
9
+ You should always use `TypeScriptAsset` or `JavaScriptAsset`.
10
+
11
+ #### Initializers <a name="@mrgrain/cdk-esbuild.EsbuildAsset.Initializer"></a>
12
+
13
+ ```typescript
14
+ import { EsbuildAsset } from '@mrgrain/cdk-esbuild'
15
+
16
+ new EsbuildAsset(scope: Construct, id: string, props: AssetProps)
17
+ ```
18
+
19
+ ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildAsset.parameter.scope"></a>
20
+
21
+ - *Type:* [`constructs.Construct`](#constructs.Construct)
22
+
23
+ ---
24
+
25
+ ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildAsset.parameter.id"></a>
26
+
27
+ - *Type:* `string`
28
+
29
+ ---
30
+
31
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildAsset.parameter.props"></a>
32
+
33
+ - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
34
+
35
+ ---
36
+
37
+
38
+
39
+
40
+
41
+ ### JavaScriptAsset <a name="@mrgrain/cdk-esbuild.JavaScriptAsset"></a>
42
+
43
+ Bundles the entry points and creates a CDK asset which is uploaded to the bootstrapped CDK S3 bucket during deployment.
44
+
45
+ The asset can be used by other constructs.
46
+
47
+ #### Initializers <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.Initializer"></a>
48
+
49
+ ```typescript
50
+ import { JavaScriptAsset } from '@mrgrain/cdk-esbuild'
51
+
52
+ new JavaScriptAsset(scope: Construct, id: string, props: AssetProps)
53
+ ```
54
+
55
+ ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.scope"></a>
56
+
57
+ - *Type:* [`constructs.Construct`](#constructs.Construct)
58
+
59
+ ---
60
+
61
+ ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.id"></a>
62
+
63
+ - *Type:* `string`
64
+
65
+ ---
66
+
67
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.props"></a>
68
+
69
+ - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
70
+
71
+ ---
72
+
73
+
74
+
75
+
76
+
77
+ ### TypeScriptAsset <a name="@mrgrain/cdk-esbuild.TypeScriptAsset"></a>
78
+
79
+ Bundles the entry points and creates a CDK asset which is uploaded to the bootstrapped CDK S3 bucket during deployment.
80
+
81
+ The asset can be used by other constructs.
82
+
83
+ #### Initializers <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.Initializer"></a>
84
+
85
+ ```typescript
86
+ import { TypeScriptAsset } from '@mrgrain/cdk-esbuild'
87
+
88
+ new TypeScriptAsset(scope: Construct, id: string, props: AssetProps)
89
+ ```
90
+
91
+ ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.scope"></a>
92
+
93
+ - *Type:* [`constructs.Construct`](#constructs.Construct)
94
+
95
+ ---
96
+
97
+ ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.id"></a>
98
+
99
+ - *Type:* `string`
100
+
101
+ ---
102
+
103
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.props"></a>
104
+
105
+ - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
106
+
107
+ ---
108
+
109
+
110
+
111
+
3
112
 
4
113
  ## Structs <a name="Structs"></a>
5
114
 
@@ -82,6 +191,20 @@ Instead use only relative paths and avoid `..`.
82
191
 
83
192
  ---
84
193
 
194
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.AssetProps.property.esbuildBinaryPath"></a>
195
+
196
+ ```typescript
197
+ public readonly esbuildBinaryPath: string;
198
+ ```
199
+
200
+ - *Type:* `string`
201
+
202
+ Path to the binary used by esbuild.
203
+
204
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
205
+
206
+ ---
207
+
85
208
  ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.AssetProps.property.entryPoints"></a>
86
209
 
87
210
  ```typescript
@@ -746,6 +869,18 @@ Documentation: https://esbuild.github.io/api/#splitting.
746
869
 
747
870
  ---
748
871
 
872
+ ##### `supported`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.supported"></a>
873
+
874
+ ```typescript
875
+ public readonly supported: {[ key: string ]: boolean};
876
+ ```
877
+
878
+ - *Type:* {[ key: string ]: `boolean`}
879
+
880
+ Documentation: https://esbuild.github.io/api/#supported.
881
+
882
+ ---
883
+
749
884
  ##### `target`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.target"></a>
750
885
 
751
886
  ```typescript
@@ -873,8 +1008,24 @@ Instead use only relative paths and avoid `..`.
873
1008
 
874
1009
  ---
875
1010
 
1011
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BundlerProps.property.esbuildBinaryPath"></a>
1012
+
1013
+ ```typescript
1014
+ public readonly esbuildBinaryPath: string;
1015
+ ```
1016
+
1017
+ - *Type:* `string`
1018
+
1019
+ Path to the binary used by esbuild.
1020
+
1021
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1022
+
1023
+ ---
1024
+
876
1025
  ### CodeConfig <a name="@mrgrain/cdk-esbuild.CodeConfig"></a>
877
1026
 
1027
+ Result of binding `Code` into a `Function`.
1028
+
878
1029
  #### Initializer <a name="[object Object].Initializer"></a>
879
1030
 
880
1031
  ```typescript
@@ -883,15 +1034,42 @@ import { CodeConfig } from '@mrgrain/cdk-esbuild'
883
1034
  const codeConfig: CodeConfig = { ... }
884
1035
  ```
885
1036
 
886
- ##### `s3Location`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.CodeConfig.property.s3Location"></a>
1037
+ ##### `image`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.CodeConfig.property.image"></a>
1038
+
1039
+ ```typescript
1040
+ public readonly image: CodeImageConfig;
1041
+ ```
1042
+
1043
+ - *Type:* [`aws-cdk-lib.aws_lambda.CodeImageConfig`](#aws-cdk-lib.aws_lambda.CodeImageConfig)
1044
+ - *Default:* code is not an ECR container image
1045
+
1046
+ Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`).
1047
+
1048
+ ---
1049
+
1050
+ ##### `inlineCode`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.CodeConfig.property.inlineCode"></a>
1051
+
1052
+ ```typescript
1053
+ public readonly inlineCode: string;
1054
+ ```
1055
+
1056
+ - *Type:* `string`
1057
+ - *Default:* code is not inline code
1058
+
1059
+ Inline code (mutually exclusive with `s3Location` and `image`).
1060
+
1061
+ ---
1062
+
1063
+ ##### `s3Location`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.CodeConfig.property.s3Location"></a>
887
1064
 
888
1065
  ```typescript
889
1066
  public readonly s3Location: Location;
890
1067
  ```
891
1068
 
892
1069
  - *Type:* [`aws-cdk-lib.aws_s3.Location`](#aws-cdk-lib.aws_s3.Location)
1070
+ - *Default:* code is not an s3 location
893
1071
 
894
- The location of the code in S3.
1072
+ The location of the code in S3 (mutually exclusive with `inlineCode` and `image`).
895
1073
 
896
1074
  ---
897
1075
 
@@ -974,6 +1152,20 @@ Instead use only relative paths and avoid `..`.
974
1152
 
975
1153
  ---
976
1154
 
1155
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCodeProps.property.esbuildBinaryPath"></a>
1156
+
1157
+ ```typescript
1158
+ public readonly esbuildBinaryPath: string;
1159
+ ```
1160
+
1161
+ - *Type:* `string`
1162
+
1163
+ Path to the binary used by esbuild.
1164
+
1165
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1166
+
1167
+ ---
1168
+
977
1169
  ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCodeProps.property.assetHash"></a>
978
1170
 
979
1171
  ```typescript
@@ -1069,6 +1261,20 @@ Instead use only relative paths and avoid `..`.
1069
1261
 
1070
1262
  ---
1071
1263
 
1264
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSourceProps.property.esbuildBinaryPath"></a>
1265
+
1266
+ ```typescript
1267
+ public readonly esbuildBinaryPath: string;
1268
+ ```
1269
+
1270
+ - *Type:* `string`
1271
+
1272
+ Path to the binary used by esbuild.
1273
+
1274
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1275
+
1276
+ ---
1277
+
1072
1278
  ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSourceProps.property.assetHash"></a>
1073
1279
 
1074
1280
  ```typescript
@@ -1501,6 +1707,18 @@ Documentation: https://esbuild.github.io/api/#sources-content.
1501
1707
 
1502
1708
  ---
1503
1709
 
1710
+ ##### `supported`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.supported"></a>
1711
+
1712
+ ```typescript
1713
+ public readonly supported: {[ key: string ]: boolean};
1714
+ ```
1715
+
1716
+ - *Type:* {[ key: string ]: `boolean`}
1717
+
1718
+ Documentation: https://esbuild.github.io/api/#supported.
1719
+
1720
+ ---
1721
+
1504
1722
  ##### `target`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.target"></a>
1505
1723
 
1506
1724
  ```typescript
@@ -1614,6 +1832,20 @@ Instead use only relative paths and avoid `..`.
1614
1832
 
1615
1833
  ---
1616
1834
 
1835
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCodeProps.property.esbuildBinaryPath"></a>
1836
+
1837
+ ```typescript
1838
+ public readonly esbuildBinaryPath: string;
1839
+ ```
1840
+
1841
+ - *Type:* `string`
1842
+
1843
+ Path to the binary used by esbuild.
1844
+
1845
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1846
+
1847
+ ---
1848
+
1617
1849
  ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCodeProps.property.assetHash"></a>
1618
1850
 
1619
1851
  ```typescript
@@ -1709,6 +1941,20 @@ Instead use only relative paths and avoid `..`.
1709
1941
 
1710
1942
  ---
1711
1943
 
1944
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSourceProps.property.esbuildBinaryPath"></a>
1945
+
1946
+ ```typescript
1947
+ public readonly esbuildBinaryPath: string;
1948
+ ```
1949
+
1950
+ - *Type:* `string`
1951
+
1952
+ Path to the binary used by esbuild.
1953
+
1954
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1955
+
1956
+ ---
1957
+
1712
1958
  ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSourceProps.property.assetHash"></a>
1713
1959
 
1714
1960
  ```typescript
@@ -1814,6 +2060,107 @@ Props to change the behaviour of the bundler.
1814
2060
  ---
1815
2061
 
1816
2062
 
2063
+ ### EsbuildCode <a name="@mrgrain/cdk-esbuild.EsbuildCode"></a>
2064
+
2065
+ Represents a generic esbuild code bundle.
2066
+
2067
+ You should always use `TypeScriptCode` or `JavaScriptCode`.
2068
+
2069
+ #### Initializers <a name="@mrgrain/cdk-esbuild.EsbuildCode.Initializer"></a>
2070
+
2071
+ ```typescript
2072
+ import { EsbuildCode } from '@mrgrain/cdk-esbuild'
2073
+
2074
+ new EsbuildCode(entryPoints: string | string[] | {[ key: string ]: string}, props: JavaScriptCodeProps | TypeScriptCodeProps)
2075
+ ```
2076
+
2077
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.entryPoints"></a>
2078
+
2079
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
2080
+
2081
+ A relative path or list or map of relative paths to the entry points of your code from the root of the project.
2082
+
2083
+ E.g. `src/index.ts`.
2084
+
2085
+ ---
2086
+
2087
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.props"></a>
2088
+
2089
+ - *Type:* [`@mrgrain/cdk-esbuild.JavaScriptCodeProps`](#@mrgrain/cdk-esbuild.JavaScriptCodeProps) | [`@mrgrain/cdk-esbuild.TypeScriptCodeProps`](#@mrgrain/cdk-esbuild.TypeScriptCodeProps)
2090
+
2091
+ Props to change the behavior of the bundler.
2092
+
2093
+ Default values for `props.buildOptions`:
2094
+ - `bundle=true`
2095
+ - `platform=node`
2096
+ - `target=nodeX` with X being the major node version running locally
2097
+
2098
+ ---
2099
+
2100
+ #### Methods <a name="Methods"></a>
2101
+
2102
+ ##### `bind` <a name="@mrgrain/cdk-esbuild.EsbuildCode.bind"></a>
2103
+
2104
+ ```typescript
2105
+ public bind(scope: Construct)
2106
+ ```
2107
+
2108
+ ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.scope"></a>
2109
+
2110
+ - *Type:* [`constructs.Construct`](#constructs.Construct)
2111
+
2112
+ ---
2113
+
2114
+ ##### `bindToResource` <a name="@mrgrain/cdk-esbuild.EsbuildCode.bindToResource"></a>
2115
+
2116
+ ```typescript
2117
+ public bindToResource(resource: CfnResource, options?: ResourceBindOptions)
2118
+ ```
2119
+
2120
+ ###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.resource"></a>
2121
+
2122
+ - *Type:* [`aws-cdk-lib.CfnResource`](#aws-cdk-lib.CfnResource)
2123
+
2124
+ ---
2125
+
2126
+ ###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.options"></a>
2127
+
2128
+ - *Type:* [`aws-cdk-lib.aws_lambda.ResourceBindOptions`](#aws-cdk-lib.aws_lambda.ResourceBindOptions)
2129
+
2130
+ ---
2131
+
2132
+
2133
+ #### Properties <a name="Properties"></a>
2134
+
2135
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.property.entryPoints"></a>
2136
+
2137
+ ```typescript
2138
+ public readonly entryPoints: string | string[] | {[ key: string ]: string};
2139
+ ```
2140
+
2141
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
2142
+
2143
+ A relative path or list or map of relative paths to the entry points of your code from the root of the project.
2144
+
2145
+ E.g. `src/index.ts`.
2146
+
2147
+ ---
2148
+
2149
+ ##### ~~`isInline`~~<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.property.isInline"></a>
2150
+
2151
+ - *Deprecated:* this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().
2152
+
2153
+ ```typescript
2154
+ public readonly isInline: boolean;
2155
+ ```
2156
+
2157
+ - *Type:* `boolean`
2158
+
2159
+ Determines whether this Code is inline code or not.
2160
+
2161
+ ---
2162
+
2163
+
1817
2164
  ### InlineJavaScriptCode <a name="@mrgrain/cdk-esbuild.InlineJavaScriptCode"></a>
1818
2165
 
1819
2166
  An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation.
@@ -1970,42 +2317,6 @@ Default values for `transformOptions`:
1970
2317
 
1971
2318
 
1972
2319
 
1973
- ### JavaScriptAsset <a name="@mrgrain/cdk-esbuild.JavaScriptAsset"></a>
1974
-
1975
- Bundles the entry points and creates a CDK asset which is uploaded to the bootstrapped CDK S3 bucket during deployment.
1976
-
1977
- The asset can be used by other constructs.
1978
-
1979
- #### Initializers <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.Initializer"></a>
1980
-
1981
- ```typescript
1982
- import { JavaScriptAsset } from '@mrgrain/cdk-esbuild'
1983
-
1984
- new JavaScriptAsset(scope: Construct, id: string, props: AssetProps)
1985
- ```
1986
-
1987
- ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.scope"></a>
1988
-
1989
- - *Type:* [`constructs.Construct`](#constructs.Construct)
1990
-
1991
- ---
1992
-
1993
- ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.id"></a>
1994
-
1995
- - *Type:* `string`
1996
-
1997
- ---
1998
-
1999
- ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.props"></a>
2000
-
2001
- - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
2002
-
2003
- ---
2004
-
2005
-
2006
-
2007
-
2008
-
2009
2320
  ### JavaScriptCode <a name="@mrgrain/cdk-esbuild.JavaScriptCode"></a>
2010
2321
 
2011
2322
  Represents the deployed JavaScript Code.
@@ -2041,54 +2352,8 @@ Default values for `props.buildOptions`:
2041
2352
 
2042
2353
  ---
2043
2354
 
2044
- #### Methods <a name="Methods"></a>
2045
2355
 
2046
- ##### `bind` <a name="@mrgrain/cdk-esbuild.JavaScriptCode.bind"></a>
2047
2356
 
2048
- ```typescript
2049
- public bind(scope: Construct)
2050
- ```
2051
-
2052
- ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.scope"></a>
2053
-
2054
- - *Type:* [`constructs.Construct`](#constructs.Construct)
2055
-
2056
- ---
2057
-
2058
- ##### `bindToResource` <a name="@mrgrain/cdk-esbuild.JavaScriptCode.bindToResource"></a>
2059
-
2060
- ```typescript
2061
- public bindToResource(resource: CfnResource, options?: ResourceBindOptions)
2062
- ```
2063
-
2064
- ###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.resource"></a>
2065
-
2066
- - *Type:* [`aws-cdk-lib.CfnResource`](#aws-cdk-lib.CfnResource)
2067
-
2068
- ---
2069
-
2070
- ###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.options"></a>
2071
-
2072
- - *Type:* [`aws-cdk-lib.aws_lambda.ResourceBindOptions`](#aws-cdk-lib.aws_lambda.ResourceBindOptions)
2073
-
2074
- ---
2075
-
2076
-
2077
- #### Properties <a name="Properties"></a>
2078
-
2079
- ##### ~~`isInline`~~<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.property.isInline"></a>
2080
-
2081
- - *Deprecated:* this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().
2082
-
2083
- ```typescript
2084
- public readonly isInline: boolean;
2085
- ```
2086
-
2087
- - *Type:* `boolean`
2088
-
2089
- Determines whether this Code is inline code or not.
2090
-
2091
- ---
2092
2357
 
2093
2358
 
2094
2359
  ### JavaScriptSource <a name="@mrgrain/cdk-esbuild.JavaScriptSource"></a>
@@ -2149,42 +2414,6 @@ public readonly assetClass: JavaScriptAsset;
2149
2414
  ---
2150
2415
 
2151
2416
 
2152
- ### TypeScriptAsset <a name="@mrgrain/cdk-esbuild.TypeScriptAsset"></a>
2153
-
2154
- Bundles the entry points and creates a CDK asset which is uploaded to the bootstrapped CDK S3 bucket during deployment.
2155
-
2156
- The asset can be used by other constructs.
2157
-
2158
- #### Initializers <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.Initializer"></a>
2159
-
2160
- ```typescript
2161
- import { TypeScriptAsset } from '@mrgrain/cdk-esbuild'
2162
-
2163
- new TypeScriptAsset(scope: Construct, id: string, props: AssetProps)
2164
- ```
2165
-
2166
- ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.scope"></a>
2167
-
2168
- - *Type:* [`constructs.Construct`](#constructs.Construct)
2169
-
2170
- ---
2171
-
2172
- ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.id"></a>
2173
-
2174
- - *Type:* `string`
2175
-
2176
- ---
2177
-
2178
- ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.props"></a>
2179
-
2180
- - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
2181
-
2182
- ---
2183
-
2184
-
2185
-
2186
-
2187
-
2188
2417
  ### TypeScriptCode <a name="@mrgrain/cdk-esbuild.TypeScriptCode"></a>
2189
2418
 
2190
2419
  Represents the deployed TypeScript Code.
@@ -2220,54 +2449,8 @@ Default values for `props.buildOptions`:
2220
2449
 
2221
2450
  ---
2222
2451
 
2223
- #### Methods <a name="Methods"></a>
2224
2452
 
2225
- ##### `bind` <a name="@mrgrain/cdk-esbuild.TypeScriptCode.bind"></a>
2226
2453
 
2227
- ```typescript
2228
- public bind(scope: Construct)
2229
- ```
2230
-
2231
- ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.scope"></a>
2232
-
2233
- - *Type:* [`constructs.Construct`](#constructs.Construct)
2234
-
2235
- ---
2236
-
2237
- ##### `bindToResource` <a name="@mrgrain/cdk-esbuild.TypeScriptCode.bindToResource"></a>
2238
-
2239
- ```typescript
2240
- public bindToResource(resource: CfnResource, options?: ResourceBindOptions)
2241
- ```
2242
-
2243
- ###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.resource"></a>
2244
-
2245
- - *Type:* [`aws-cdk-lib.CfnResource`](#aws-cdk-lib.CfnResource)
2246
-
2247
- ---
2248
-
2249
- ###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.options"></a>
2250
-
2251
- - *Type:* [`aws-cdk-lib.aws_lambda.ResourceBindOptions`](#aws-cdk-lib.aws_lambda.ResourceBindOptions)
2252
-
2253
- ---
2254
-
2255
-
2256
- #### Properties <a name="Properties"></a>
2257
-
2258
- ##### ~~`isInline`~~<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.property.isInline"></a>
2259
-
2260
- - *Deprecated:* this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().
2261
-
2262
- ```typescript
2263
- public readonly isInline: boolean;
2264
- ```
2265
-
2266
- - *Type:* `boolean`
2267
-
2268
- Determines whether this Code is inline code or not.
2269
-
2270
- ---
2271
2454
 
2272
2455
 
2273
2456
  ### TypeScriptSource <a name="@mrgrain/cdk-esbuild.TypeScriptSource"></a>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [3.6.0](https://github.com/mrgrain/cdk-esbuild/compare/v3.5.0...v3.6.0) (2022-06-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * allow setting of esbuildBinaryPath via Construct interface ([f4eeebe](https://github.com/mrgrain/cdk-esbuild/commit/f4eeebe613bf20b8b28313a81b328bdcd1c1a8e6))
7
+ * upgrade esbuild to support `supported` buildOption and new `copy` loader ([3ac5d92](https://github.com/mrgrain/cdk-esbuild/commit/3ac5d925342505669dbb3d3e88249f6e495b8566))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * make TypeScriptCode and JavaScriptCode correctly extend aws_lambda.Code in jsii ([d04db27](https://github.com/mrgrain/cdk-esbuild/commit/d04db2798559b38d424a2012ebb96d14ebde4fb0))
1
13
 
2
14
  ## [3.5.0](https://github.com/mrgrain/cdk-esbuild/compare/v3.4.0...v3.5.0) (2022-06-02)
3
15