@nikovirtala/projen-constructs 0.3.78 → 0.3.80

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.
Files changed (45) hide show
  1. package/.jsii +326 -141
  2. package/README.md +18 -0
  3. package/docs/api/assets/search.js +1 -1
  4. package/docs/api/classes/AwsCdkConstructLibraryProject.html +1 -1
  5. package/docs/api/classes/AwsCdkTypeScriptAppProject.html +1 -1
  6. package/docs/api/classes/Bundler.html +33 -6
  7. package/docs/api/classes/Colima.html +4 -0
  8. package/docs/api/classes/JsiiProject.html +1 -1
  9. package/docs/api/classes/LambdaFunctionCodeBundle.html +22 -2
  10. package/docs/api/classes/LambdaFunctionConstructGenerator.html +4 -0
  11. package/docs/api/classes/LocalStack.html +4 -0
  12. package/docs/api/classes/ProjectGenerator.html +1 -1
  13. package/docs/api/classes/TypeScriptProject.html +1 -1
  14. package/docs/api/classes/Vitest.html +1 -1
  15. package/docs/api/functions/convertToPosixPath.html +2 -0
  16. package/docs/api/functions/renderBundleName.html +9 -1
  17. package/docs/api/index.html +8 -0
  18. package/docs/api/interfaces/Bundle.html +12 -3
  19. package/docs/api/interfaces/BundlerOptions.html +40 -4
  20. package/docs/api/interfaces/BundlingOptions.html +139 -12
  21. package/docs/api/interfaces/LambdaFunctionCodeBundleOptions.html +53 -5
  22. package/docs/api/interfaces/LambdaFunctionCodeBundlerOptions.html +26 -3
  23. package/docs/api/interfaces/LambdaFunctionConstructGeneratorOptions.html +90 -8
  24. package/docs/api/interfaces/LocalStackOptions.html +46 -4
  25. package/docs/api/interfaces/ProjectGeneratorOptions.html +1 -1
  26. package/docs/api/interfaces/VitestOptions.html +48 -3
  27. package/lib/components/bundle-lambda-function-code.d.ts +243 -0
  28. package/lib/components/bundle-lambda-function-code.js +75 -5
  29. package/lib/components/colima.d.ts +5 -0
  30. package/lib/components/colima.js +7 -2
  31. package/lib/components/homebrew.js +1 -1
  32. package/lib/components/lambda-function-construct-generator.d.ts +54 -0
  33. package/lib/components/lambda-function-construct-generator.js +7 -2
  34. package/lib/components/localstack.d.ts +32 -0
  35. package/lib/components/localstack.js +14 -2
  36. package/lib/components/mise.js +1 -1
  37. package/lib/components/typedoc.js +1 -1
  38. package/lib/components/vitest.d.ts +29 -0
  39. package/lib/components/vitest.js +38 -35
  40. package/lib/project-generator.js +1 -1
  41. package/lib/projects/awscdk-construct-library.generated.js +1 -1
  42. package/lib/projects/awscdk-typescript-app.generated.js +1 -1
  43. package/lib/projects/jsii.generated.js +1 -1
  44. package/lib/projects/typescript.generated.js +1 -1
  45. package/package.json +1 -1
@@ -10,6 +10,9 @@
10
10
  <ul class="tsd-breadcrumb" aria-label="Breadcrumb">
11
11
  <li><a href="" aria-current="page">BundlerOptions</a></li></ul>
12
12
  <h1>Interface BundlerOptions</h1></div>
13
+ <section class="tsd-panel tsd-comment">
14
+ <div class="tsd-comment tsd-typography"><p>Options for <code>Bundler</code>.</p>
15
+ </div></section>
13
16
  <div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">BundlerOptions</span> <span class="tsd-signature-symbol">{</span><br/>    <a class="tsd-kind-property" href="#addtoprecompile">addToPreCompile</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#assetsdir">assetsDir</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#esbuildversion">esbuildVersion</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#loaders">loaders</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div>
14
17
  <section class="tsd-panel-group tsd-index-group">
15
18
  <section class="tsd-panel tsd-index-panel">
@@ -28,16 +31,49 @@
28
31
  <section>
29
32
  <section class="tsd-panel tsd-member">
30
33
  <h3 class="tsd-anchor-link" id="addtoprecompile"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>add<wbr/>To<wbr/>Pre<wbr/>Compile</span><a href="#addtoprecompile" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
31
- <div class="tsd-signature"><span class="tsd-kind-property">addToPreCompile</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div></section>
34
+ <div class="tsd-signature"><span class="tsd-kind-property">addToPreCompile</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div>
35
+ <div class="tsd-comment tsd-typography"><p>Install the <code>bundle</code> command as a pre-compile phase.</p>
36
+ </div>
37
+ <div class="tsd-comment tsd-typography">
38
+ <div class="tsd-tag-default">
39
+ <h4 class="tsd-anchor-link" id="default">Default<a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-3">true</span>
40
+ </code><button type="button">Copy</button></pre>
41
+
42
+ </div></div></section>
32
43
  <section class="tsd-panel tsd-member">
33
44
  <h3 class="tsd-anchor-link" id="assetsdir"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>assets<wbr/>Dir</span><a href="#assetsdir" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
34
- <div class="tsd-signature"><span class="tsd-kind-property">assetsDir</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
45
+ <div class="tsd-signature"><span class="tsd-kind-property">assetsDir</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
46
+ <div class="tsd-comment tsd-typography"><p>Output directory for all bundles.</p>
47
+ </div>
48
+ <div class="tsd-comment tsd-typography">
49
+ <div class="tsd-tag-default">
50
+ <h4 class="tsd-anchor-link" id="default-1">Default<a href="#default-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;assets&quot;</span>
51
+ </code><button type="button">Copy</button></pre>
52
+
53
+ </div></div></section>
35
54
  <section class="tsd-panel tsd-member">
36
55
  <h3 class="tsd-anchor-link" id="esbuildversion"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>esbuild<wbr/>Version</span><a href="#esbuildversion" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
37
- <div class="tsd-signature"><span class="tsd-kind-property">esbuildVersion</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
56
+ <div class="tsd-signature"><span class="tsd-kind-property">esbuildVersion</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
57
+ <div class="tsd-comment tsd-typography"><p>The semantic version requirement for <code>esbuild</code>.</p>
58
+ </div>
59
+ <div class="tsd-comment tsd-typography">
60
+ <div class="tsd-tag-default">
61
+ <h4 class="tsd-anchor-link" id="default-2">Default<a href="#default-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-1">- </span><span class="hl-5">no</span><span class="hl-1"> </span><span class="hl-5">specific</span><span class="hl-1"> </span><span class="hl-0">version</span><span class="hl-1"> (</span><span class="hl-5">implies</span><span class="hl-1"> </span><span class="hl-5">latest</span><span class="hl-1">)</span>
62
+ </code><button type="button">Copy</button></pre>
63
+
64
+ </div></div></section>
38
65
  <section class="tsd-panel tsd-member">
39
66
  <h3 class="tsd-anchor-link" id="loaders"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>loaders</span><a href="#loaders" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
40
- <div class="tsd-signature"><span class="tsd-kind-property">loaders</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span></div></section></section></details></div>
67
+ <div class="tsd-signature"><span class="tsd-kind-property">loaders</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span></div>
68
+ <div class="tsd-comment tsd-typography"><p>Map of file extensions (without dot) and loaders to use for this file type.
69
+ Loaders are appended to the esbuild command by <code>--loader:.extension=loader</code></p>
70
+ </div>
71
+ <div class="tsd-comment tsd-typography">
72
+ <div class="tsd-tag-default">
73
+ <h4 class="tsd-anchor-link" id="default-3">Default<a href="#default-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-1">- </span><span class="hl-5">no</span><span class="hl-1"> </span><span class="hl-5">loaders</span>
74
+ </code><button type="button">Copy</button></pre>
75
+
76
+ </div></div></section></section></details></div>
41
77
  <div class="col-sidebar">
42
78
  <div class="page-menu">
43
79
  <div class="tsd-navigation settings">
@@ -10,6 +10,9 @@
10
10
  <ul class="tsd-breadcrumb" aria-label="Breadcrumb">
11
11
  <li><a href="" aria-current="page">BundlingOptions</a></li></ul>
12
12
  <h1>Interface BundlingOptions</h1></div>
13
+ <section class="tsd-panel tsd-comment">
14
+ <div class="tsd-comment tsd-typography"><p>Options for bundling.</p>
15
+ </div></section>
13
16
  <div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">BundlingOptions</span> <span class="tsd-signature-symbol">{</span><br/>    <a class="tsd-kind-property" href="#banner">banner</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#externals">externals</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#format">format</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#loaders">loaders</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#mainfields">mainFields</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#minify">minify</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#outfile">outfile</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#platform">platform</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#sourcemap">sourcemap</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#sourcescontent">sourcesContent</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#target">target</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#tsconfigpath">tsconfigPath</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div>
14
17
  <section class="tsd-panel-group tsd-index-group">
15
18
  <section class="tsd-panel tsd-index-panel">
@@ -36,40 +39,164 @@
36
39
  <section>
37
40
  <section class="tsd-panel tsd-member">
38
41
  <h3 class="tsd-anchor-link" id="banner"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>banner</span><a href="#banner" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
39
- <div class="tsd-signature"><span class="tsd-kind-property">banner</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
42
+ <div class="tsd-signature"><span class="tsd-kind-property">banner</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
43
+ <div class="tsd-comment tsd-typography"><p>esbuild <code>--banner</code> argument, appended as is (so it starts with the file type, e.g. <code>:js=</code>).</p>
44
+ <p>The default defines <code>require</code> so that CommonJS dependencies work in an ES module bundle.</p>
45
+ </div>
46
+ <div class="tsd-comment tsd-typography">
47
+ <div class="tsd-tag-default">
48
+ <h4 class="tsd-anchor-link" id="default">Default<a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;:js=import { createRequire as topLevelCreateRequire } from &#39;module&#39;;const require = topLevelCreateRequire(import.meta.url)&quot;</span>
49
+ </code><button type="button">Copy</button></pre>
50
+
51
+ </div>
52
+ <div class="tsd-tag-see">
53
+ <h4 class="tsd-anchor-link" id="see">See<a href="#see" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p><a href="https://esbuild.github.io/api/#banner">https://esbuild.github.io/api/#banner</a></p>
54
+ </div></div></section>
40
55
  <section class="tsd-panel tsd-member">
41
56
  <h3 class="tsd-anchor-link" id="externals"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>externals</span><a href="#externals" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
42
- <div class="tsd-signature"><span class="tsd-kind-property">externals</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div></section>
57
+ <div class="tsd-signature"><span class="tsd-kind-property">externals</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
58
+ <div class="tsd-comment tsd-typography"><p>You can mark a file or a package as external to exclude it from your build.
59
+ Instead of being bundled, the import will be preserved (using require for
60
+ the iife and cjs formats and using import for the esm format) and will be
61
+ evaluated at run time instead.</p>
62
+ <p>This has several uses. First of all, it can be used to trim unnecessary
63
+ code from your bundle for a code path that you know will never be executed.
64
+ For example, a package may contain code that only runs in node but you will
65
+ only be using that package in the browser. It can also be used to import
66
+ code in node at run time from a package that cannot be bundled. For
67
+ example, the fsevents package contains a native extension, which esbuild
68
+ doesn't support.</p>
69
+ </div>
70
+ <div class="tsd-comment tsd-typography">
71
+ <div class="tsd-tag-default">
72
+ <h4 class="tsd-anchor-link" id="default-1">Default<a href="#default-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-1">[]</span>
73
+ </code><button type="button">Copy</button></pre>
74
+
75
+ </div></div></section>
43
76
  <section class="tsd-panel tsd-member">
44
77
  <h3 class="tsd-anchor-link" id="format"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>format</span><a href="#format" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
45
- <div class="tsd-signature"><span class="tsd-kind-property">format</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
78
+ <div class="tsd-signature"><span class="tsd-kind-property">format</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
79
+ <div class="tsd-comment tsd-typography"><p>Output format for the generated JavaScript files: <code>&quot;iife&quot;</code>, <code>&quot;cjs&quot;</code> or <code>&quot;esm&quot;</code>.</p>
80
+ </div>
81
+ <div class="tsd-comment tsd-typography">
82
+ <div class="tsd-tag-default">
83
+ <h4 class="tsd-anchor-link" id="default-2">Default<a href="#default-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;esm&quot;</span>
84
+ </code><button type="button">Copy</button></pre>
85
+
86
+ </div>
87
+ <div class="tsd-tag-see">
88
+ <h4 class="tsd-anchor-link" id="see-1">See<a href="#see-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p><a href="https://esbuild.github.io/api/#format">https://esbuild.github.io/api/#format</a></p>
89
+ </div></div></section>
46
90
  <section class="tsd-panel tsd-member">
47
91
  <h3 class="tsd-anchor-link" id="loaders"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>loaders</span><a href="#loaders" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
48
- <div class="tsd-signature"><span class="tsd-kind-property">loaders</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span></div></section>
92
+ <div class="tsd-signature"><span class="tsd-kind-property">loaders</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span></div>
93
+ <div class="tsd-comment tsd-typography"><p>Map of file extensions (without dot) and loaders to use for this file type.
94
+ Loaders are appended to the esbuild command by <code>--loader:.extension=loader</code></p>
95
+ </div>
96
+ <div class="tsd-comment tsd-typography">
97
+ <div class="tsd-tag-default">
98
+ <h4 class="tsd-anchor-link" id="default-3">Default<a href="#default-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><ul>
99
+ <li>the loaders of the <code>Bundler</code></li>
100
+ </ul>
101
+ </div></div></section>
49
102
  <section class="tsd-panel tsd-member">
50
103
  <h3 class="tsd-anchor-link" id="mainfields"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>main<wbr/>Fields</span><a href="#mainfields" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
51
- <div class="tsd-signature"><span class="tsd-kind-property">mainFields</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
104
+ <div class="tsd-signature"><span class="tsd-kind-property">mainFields</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
105
+ <div class="tsd-comment tsd-typography"><p>Comma-separated list of <code>package.json</code> fields esbuild tries when resolving a package.</p>
106
+ </div>
107
+ <div class="tsd-comment tsd-typography">
108
+ <div class="tsd-tag-default">
109
+ <h4 class="tsd-anchor-link" id="default-4">Default<a href="#default-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;module,main&quot;</span>
110
+ </code><button type="button">Copy</button></pre>
111
+
112
+ </div>
113
+ <div class="tsd-tag-see">
114
+ <h4 class="tsd-anchor-link" id="see-2">See<a href="#see-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p><a href="https://esbuild.github.io/api/#main-fields">https://esbuild.github.io/api/#main-fields</a></p>
115
+ </div></div></section>
52
116
  <section class="tsd-panel tsd-member">
53
117
  <h3 class="tsd-anchor-link" id="minify"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>minify</span><a href="#minify" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
54
- <div class="tsd-signature"><span class="tsd-kind-property">minify</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div></section>
118
+ <div class="tsd-signature"><span class="tsd-kind-property">minify</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div>
119
+ <div class="tsd-comment tsd-typography"><p>Minify the bundle.</p>
120
+ </div>
121
+ <div class="tsd-comment tsd-typography">
122
+ <div class="tsd-tag-default">
123
+ <h4 class="tsd-anchor-link" id="default-5">Default<a href="#default-5" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-3">true</span>
124
+ </code><button type="button">Copy</button></pre>
125
+
126
+ </div>
127
+ <div class="tsd-tag-see">
128
+ <h4 class="tsd-anchor-link" id="see-3">See<a href="#see-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p><a href="https://esbuild.github.io/api/#minify">https://esbuild.github.io/api/#minify</a></p>
129
+ </div></div></section>
55
130
  <section class="tsd-panel tsd-member">
56
131
  <h3 class="tsd-anchor-link" id="outfile"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>outfile</span><a href="#outfile" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
57
- <div class="tsd-signature"><span class="tsd-kind-property">outfile</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
132
+ <div class="tsd-signature"><span class="tsd-kind-property">outfile</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
133
+ <div class="tsd-comment tsd-typography"><p>Bundler output path relative to the asset's output directory.</p>
134
+ </div>
135
+ <div class="tsd-comment tsd-typography">
136
+ <div class="tsd-tag-default">
137
+ <h4 class="tsd-anchor-link" id="default-6">Default<a href="#default-6" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;index.mjs&quot;</span>
138
+ </code><button type="button">Copy</button></pre>
139
+
140
+ </div></div></section>
58
141
  <section class="tsd-panel tsd-member">
59
142
  <h3 class="tsd-anchor-link" id="platform"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>platform</span><a href="#platform" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
60
- <div class="tsd-signature"><span class="tsd-kind-property">platform</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
143
+ <div class="tsd-signature"><span class="tsd-kind-property">platform</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
144
+ <div class="tsd-comment tsd-typography"><p>esbuild platform.</p>
145
+ </div>
146
+ <div class="tsd-comment tsd-typography">
147
+ <div class="tsd-tag-default">
148
+ <h4 class="tsd-anchor-link" id="default-7">Default<a href="#default-7" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;node&quot;</span>
149
+ </code><button type="button">Copy</button></pre>
150
+
151
+ </div></div></section>
61
152
  <section class="tsd-panel tsd-member">
62
153
  <h3 class="tsd-anchor-link" id="sourcemap"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>sourcemap</span><a href="#sourcemap" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
63
- <div class="tsd-signature"><span class="tsd-kind-property">sourcemap</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div></section>
154
+ <div class="tsd-signature"><span class="tsd-kind-property">sourcemap</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div>
155
+ <div class="tsd-comment tsd-typography"><p>Include a source map in the bundle.</p>
156
+ </div>
157
+ <div class="tsd-comment tsd-typography">
158
+ <div class="tsd-tag-default">
159
+ <h4 class="tsd-anchor-link" id="default-8">Default<a href="#default-8" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-3">true</span>
160
+ </code><button type="button">Copy</button></pre>
161
+
162
+ </div></div></section>
64
163
  <section class="tsd-panel tsd-member">
65
164
  <h3 class="tsd-anchor-link" id="sourcescontent"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>sources<wbr/>Content</span><a href="#sourcescontent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
66
- <div class="tsd-signature"><span class="tsd-kind-property">sourcesContent</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div></section>
165
+ <div class="tsd-signature"><span class="tsd-kind-property">sourcesContent</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div>
166
+ <div class="tsd-comment tsd-typography"><p>Include the original source code in the source map.</p>
167
+ </div>
168
+ <div class="tsd-comment tsd-typography">
169
+ <div class="tsd-tag-default">
170
+ <h4 class="tsd-anchor-link" id="default-9">Default<a href="#default-9" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-3">false</span>
171
+ </code><button type="button">Copy</button></pre>
172
+
173
+ </div>
174
+ <div class="tsd-tag-see">
175
+ <h4 class="tsd-anchor-link" id="see-4">See<a href="#see-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p><a href="https://esbuild.github.io/api/#sources-content">https://esbuild.github.io/api/#sources-content</a></p>
176
+ </div></div></section>
67
177
  <section class="tsd-panel tsd-member">
68
178
  <h3 class="tsd-anchor-link" id="target"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>target</span><a href="#target" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
69
- <div class="tsd-signature"><span class="tsd-kind-property">target</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
179
+ <div class="tsd-signature"><span class="tsd-kind-property">target</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
180
+ <div class="tsd-comment tsd-typography"><p>esbuild target.</p>
181
+ </div>
182
+ <div class="tsd-comment tsd-typography">
183
+ <div class="tsd-tag-default">
184
+ <h4 class="tsd-anchor-link" id="default-10">Default<a href="#default-10" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;esnext&quot;</span>
185
+ </code><button type="button">Copy</button></pre>
186
+
187
+ </div></div></section>
70
188
  <section class="tsd-panel tsd-member">
71
189
  <h3 class="tsd-anchor-link" id="tsconfigpath"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>tsconfig<wbr/>Path</span><a href="#tsconfigpath" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
72
- <div class="tsd-signature"><span class="tsd-kind-property">tsconfigPath</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section></section></details></div>
190
+ <div class="tsd-signature"><span class="tsd-kind-property">tsconfigPath</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
191
+ <div class="tsd-comment tsd-typography"><p>The path of the tsconfig.json file to use for bundling.</p>
192
+ <p><code>LambdaFunctionCodeBundle</code> always sets this to the project's development tsconfig.</p>
193
+ </div>
194
+ <div class="tsd-comment tsd-typography">
195
+ <div class="tsd-tag-default">
196
+ <h4 class="tsd-anchor-link" id="default-11">Default<a href="#default-11" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-1">- </span><span class="hl-5">no</span><span class="hl-1"> </span><span class="hl-5">tsconfig</span><span class="hl-1"> </span><span class="hl-5">is</span><span class="hl-1"> </span><span class="hl-5">passed</span><span class="hl-1"> </span><span class="hl-5">to</span><span class="hl-1"> </span><span class="hl-5">esbuild</span>
197
+ </code><button type="button">Copy</button></pre>
198
+
199
+ </div></div></section></section></details></div>
73
200
  <div class="col-sidebar">
74
201
  <div class="page-menu">
75
202
  <div class="tsd-navigation settings">
@@ -10,6 +10,9 @@
10
10
  <ul class="tsd-breadcrumb" aria-label="Breadcrumb">
11
11
  <li><a href="" aria-current="page">LambdaFunctionCodeBundleOptions</a></li></ul>
12
12
  <h1>Interface LambdaFunctionCodeBundleOptions</h1></div>
13
+ <section class="tsd-panel tsd-comment">
14
+ <div class="tsd-comment tsd-typography"><p>Options for <code>LambdaFunctionCodeBundle</code>.</p>
15
+ </div></section>
13
16
  <div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">LambdaFunctionCodeBundleOptions</span> <span class="tsd-signature-symbol">{</span><br/>    <a class="tsd-kind-property" href="#bundlingoptions">bundlingOptions</a><span class="tsd-signature-symbol">?:</span> <a href="BundlingOptions.html" class="tsd-signature-type tsd-kind-interface">BundlingOptions</a><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#constructfile">constructFile</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#constructname">constructName</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#entrypoint">entrypoint</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#extension">extension</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div>
14
17
  <section class="tsd-panel-group tsd-index-group">
15
18
  <section class="tsd-panel tsd-index-panel">
@@ -29,19 +32,64 @@
29
32
  <section>
30
33
  <section class="tsd-panel tsd-member">
31
34
  <h3 class="tsd-anchor-link" id="bundlingoptions"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>bundling<wbr/>Options</span><a href="#bundlingoptions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
32
- <div class="tsd-signature"><span class="tsd-kind-property">bundlingOptions</span><span class="tsd-signature-symbol">?:</span> <a href="BundlingOptions.html" class="tsd-signature-type tsd-kind-interface">BundlingOptions</a></div></section>
35
+ <div class="tsd-signature"><span class="tsd-kind-property">bundlingOptions</span><span class="tsd-signature-symbol">?:</span> <a href="BundlingOptions.html" class="tsd-signature-type tsd-kind-interface">BundlingOptions</a></div>
36
+ <div class="tsd-comment tsd-typography"><p>Bundling options for this AWS Lambda Function.</p>
37
+ </div>
38
+ <div class="tsd-comment tsd-typography">
39
+ <div class="tsd-tag-default">
40
+ <h4 class="tsd-anchor-link" id="default">Default<a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><ul>
41
+ <li>the defaults of <code>BundlingOptions</code></li>
42
+ </ul>
43
+ </div></div></section>
33
44
  <section class="tsd-panel tsd-member">
34
45
  <h3 class="tsd-anchor-link" id="constructfile"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>construct<wbr/>File</span><a href="#constructfile" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
35
- <div class="tsd-signature"><span class="tsd-kind-property">constructFile</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
46
+ <div class="tsd-signature"><span class="tsd-kind-property">constructFile</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
47
+ <div class="tsd-comment tsd-typography"><p>The name of the generated TypeScript source file. This file should also be
48
+ under the source tree.</p>
49
+ </div>
50
+ <div class="tsd-comment tsd-typography">
51
+ <div class="tsd-tag-default">
52
+ <h4 class="tsd-anchor-link" id="default-1">Default<a href="#default-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><ul>
53
+ <li>The path of the entrypoint file, with the <code>-code.ts</code> suffix
54
+ instead of the extension (e.g. <code>src/foo-code.ts</code>).</li>
55
+ </ul>
56
+ </div></div></section>
36
57
  <section class="tsd-panel tsd-member">
37
58
  <h3 class="tsd-anchor-link" id="constructname"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>construct<wbr/>Name</span><a href="#constructname" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
38
- <div class="tsd-signature"><span class="tsd-kind-property">constructName</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div></section>
59
+ <div class="tsd-signature"><span class="tsd-kind-property">constructName</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
60
+ <div class="tsd-comment tsd-typography"><p>The name of the generated <code>aws_lambda.Code</code> constant.</p>
61
+ </div>
62
+ <div class="tsd-comment tsd-typography">
63
+ <div class="tsd-tag-default">
64
+ <h4 class="tsd-anchor-link" id="default-2">Default<a href="#default-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><ul>
65
+ <li>A pascal cased version of the name of the entrypoint file, with
66
+ the suffix <code>FunctionCode</code> (e.g. <code>ResizeImageFunctionCode</code>).</li>
67
+ </ul>
68
+ </div></div></section>
39
69
  <section class="tsd-panel tsd-member">
40
70
  <h3 class="tsd-anchor-link" id="entrypoint"><code class="tsd-tag">Readonly</code><span>entrypoint</span><a href="#entrypoint" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
41
- <div class="tsd-signature"><span class="tsd-kind-property">entrypoint</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section>
71
+ <div class="tsd-signature"><span class="tsd-kind-property">entrypoint</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
72
+ <div class="tsd-comment tsd-typography"><p>A path from the project root directory to a TypeScript file which contains
73
+ the AWS Lambda handler entrypoint (exports a <code>handler</code> function).</p>
74
+ <p>This is relative to the root directory of the project.</p>
75
+ </div>
76
+ <div class="tsd-comment tsd-typography">
77
+ <div class="tsd-tag-example">
78
+ <h4 class="tsd-anchor-link" id="example">Example<a href="#example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;src/subdir/foo.lambda.ts&quot;</span>
79
+ </code><button type="button">Copy</button></pre>
80
+
81
+ </div></div></section>
42
82
  <section class="tsd-panel tsd-member">
43
83
  <h3 class="tsd-anchor-link" id="extension"><code class="tsd-tag">Readonly</code><span>extension</span><a href="#extension" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
44
- <div class="tsd-signature"><span class="tsd-kind-property">extension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section></section></details></div>
84
+ <div class="tsd-signature"><span class="tsd-kind-property">extension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
85
+ <div class="tsd-comment tsd-typography"><p>Suffix for AWS Lambda handlers.</p>
86
+ </div>
87
+ <div class="tsd-comment tsd-typography">
88
+ <div class="tsd-tag-example">
89
+ <h4 class="tsd-anchor-link" id="example-1">Example<a href="#example-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;.lambda.ts&quot;</span>
90
+ </code><button type="button">Copy</button></pre>
91
+
92
+ </div></div></section></section></details></div>
45
93
  <div class="col-sidebar">
46
94
  <div class="page-menu">
47
95
  <div class="tsd-navigation settings">
@@ -10,6 +10,9 @@
10
10
  <ul class="tsd-breadcrumb" aria-label="Breadcrumb">
11
11
  <li><a href="" aria-current="page">LambdaFunctionCodeBundlerOptions</a></li></ul>
12
12
  <h1>Interface LambdaFunctionCodeBundlerOptions</h1></div>
13
+ <section class="tsd-panel tsd-comment">
14
+ <div class="tsd-comment tsd-typography"><p>Options for <code>LambdaFunctionCodeBundler</code></p>
15
+ </div></section>
13
16
  <div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">LambdaFunctionCodeBundlerOptions</span> <span class="tsd-signature-symbol">{</span><br/>    <a class="tsd-kind-property" href="#bundleoptions">bundleOptions</a><span class="tsd-signature-symbol">?:</span> <a href="LambdaFunctionCodeBundleOptions.html" class="tsd-signature-type tsd-kind-interface">LambdaFunctionCodeBundleOptions</a><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#extension">extension</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#srcdir">srcdir</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div>
14
17
  <section class="tsd-panel-group tsd-index-group">
15
18
  <section class="tsd-panel tsd-index-panel">
@@ -27,13 +30,33 @@
27
30
  <section>
28
31
  <section class="tsd-panel tsd-member">
29
32
  <h3 class="tsd-anchor-link" id="bundleoptions"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>bundle<wbr/>Options</span><a href="#bundleoptions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
30
- <div class="tsd-signature"><span class="tsd-kind-property">bundleOptions</span><span class="tsd-signature-symbol">?:</span> <a href="LambdaFunctionCodeBundleOptions.html" class="tsd-signature-type tsd-kind-interface">LambdaFunctionCodeBundleOptions</a></div></section>
33
+ <div class="tsd-signature"><span class="tsd-kind-property">bundleOptions</span><span class="tsd-signature-symbol">?:</span> <a href="LambdaFunctionCodeBundleOptions.html" class="tsd-signature-type tsd-kind-interface">LambdaFunctionCodeBundleOptions</a></div>
34
+ <div class="tsd-comment tsd-typography"><p>Options for AWS Lambda Function bundling, applied to every discovered entrypoint.</p>
35
+ <p>The <code>entrypoint</code> and <code>extension</code> given here are ignored: each bundle uses its
36
+ discovered entrypoint and the <code>extension</code> of the bundler.</p>
37
+ </div>
38
+ <div class="tsd-comment tsd-typography">
39
+ <div class="tsd-tag-default">
40
+ <h4 class="tsd-anchor-link" id="default">Default<a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><ul>
41
+ <li>the defaults of <code>LambdaFunctionCodeBundleOptions</code></li>
42
+ </ul>
43
+ </div></div></section>
31
44
  <section class="tsd-panel tsd-member">
32
45
  <h3 class="tsd-anchor-link" id="extension"><code class="tsd-tag">Readonly</code><span>extension</span><a href="#extension" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
33
- <div class="tsd-signature"><span class="tsd-kind-property">extension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section>
46
+ <div class="tsd-signature"><span class="tsd-kind-property">extension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
47
+ <div class="tsd-comment tsd-typography"><p>Locate files with the given extension.</p>
48
+ </div>
49
+ <div class="tsd-comment tsd-typography">
50
+ <div class="tsd-tag-example">
51
+ <h4 class="tsd-anchor-link" id="example">Example<a href="#example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-2">&quot;.lambda.ts&quot;</span>
52
+ </code><button type="button">Copy</button></pre>
53
+
54
+ </div></div></section>
34
55
  <section class="tsd-panel tsd-member">
35
56
  <h3 class="tsd-anchor-link" id="srcdir"><code class="tsd-tag">Readonly</code><span>srcdir</span><a href="#srcdir" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
36
- <div class="tsd-signature"><span class="tsd-kind-property">srcdir</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section></section></details></div>
57
+ <div class="tsd-signature"><span class="tsd-kind-property">srcdir</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
58
+ <div class="tsd-comment tsd-typography"><p>Project source tree (relative to project output directory).</p>
59
+ </div></section></section></details></div>
37
60
  <div class="col-sidebar">
38
61
  <div class="page-menu">
39
62
  <div class="tsd-navigation settings">