@nikovirtala/projen-constructs 0.2.139 → 0.2.141
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 +495 -267
- package/docs/api/assets/icons.js +1 -1
- package/docs/api/assets/icons.svg +1 -1
- package/docs/api/assets/main.js +3 -3
- package/docs/api/assets/search.js +1 -1
- package/docs/api/classes/AwsCdkConstructLibraryProject.html +9 -9
- package/docs/api/classes/AwsCdkTypeScriptAppProject.html +9 -9
- package/docs/api/classes/JsiiProject.html +9 -9
- package/docs/api/classes/TypeScriptProject.html +9 -9
- package/docs/api/interfaces/AwsCdkConstructLibraryProjectOptions.html +342 -320
- package/docs/api/interfaces/AwsCdkTypeScriptAppProjectOptions.html +330 -308
- package/docs/api/interfaces/JsiiProjectOptions.html +319 -297
- package/docs/api/interfaces/TypeScriptProjectOptions.html +290 -268
- package/lib/components/bundle-lambda-function-code.js +3 -3
- package/lib/components/colima.js +1 -1
- package/lib/components/homebrew.js +1 -1
- package/lib/components/lambda-function-construct-generator.js +1 -1
- package/lib/components/localstack.js +1 -1
- package/lib/components/mise.js +1 -1
- package/lib/components/typedoc.js +1 -1
- package/lib/components/vitest.js +1 -1
- package/lib/config.js +2 -2
- package/lib/project-generator.js +1 -1
- package/lib/projects/awscdk-construct-library-options.generated.d.ts +36 -11
- package/lib/projects/awscdk-construct-library-options.generated.js +1 -1
- package/lib/projects/awscdk-construct-library.generated.js +3 -3
- package/lib/projects/awscdk-typescript-app-options.generated.d.ts +36 -11
- package/lib/projects/awscdk-typescript-app-options.generated.js +1 -1
- package/lib/projects/awscdk-typescript-app.generated.js +3 -3
- package/lib/projects/jsii-options.generated.d.ts +36 -11
- package/lib/projects/jsii-options.generated.js +1 -1
- package/lib/projects/jsii.generated.js +3 -3
- package/lib/projects/typescript-options.generated.d.ts +36 -11
- package/lib/projects/typescript-options.generated.js +1 -1
- package/lib/projects/typescript.generated.js +3 -3
- package/lib/versions.json +2 -2
- package/node_modules/@jsii/spec/package.json +7 -4
- package/package.json +49 -42
- package/typedoc.jsonc +1 -1
|
@@ -173,20 +173,20 @@ this task should synthesize the project files.</p>
|
|
|
173
173
|
<p>Bundled dependencies will be added as normal dependencies as well as to the
|
|
174
174
|
<code>bundledDependencies</code> section of your <code>package.json</code>.</p>
|
|
175
175
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">deps</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>Names modules to install. By default, the the dependency will
|
|
176
|
-
be installed in the next <code>
|
|
177
|
-
in your <code>package.json</code> file. You can upgrade manually or using <code>
|
|
176
|
+
be installed in the next <code>pnpm projen</code> run and the version will be recorded
|
|
177
|
+
in your <code>package.json</code> file. You can upgrade manually or using <code>pnpm add/update</code>. If you wish to specify a version range use this syntax:
|
|
178
178
|
<code>module@^7</code>.</p>
|
|
179
179
|
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from typescript.TypeScriptProject.addBundledDeps</p></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><h3 class="tsd-anchor-link" id="addcompilecommand"><span class="deprecated">add<wbr/>Compile<wbr/>Command</span><a href="#addcompilecommand" 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><ul class="tsd-signatures tsd-is-inherited tsd-is-external"><li class="tsd-is-inherited tsd-is-external"><div class="tsd-signature tsd-anchor-link" id="addcompilecommand-1"><span class="tsd-kind-call-signature">addCompileCommand</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">commands</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addcompilecommand-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></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>DEPRECATED</p>
|
|
180
180
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">commands</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-deprecated"><h4 class="tsd-anchor-link" id="deprecated-5">Deprecated<a href="#deprecated-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><p>use <code>project.compileTask.exec()</code></p>
|
|
181
181
|
</div></div><aside class="tsd-sources"><p>Inherited from typescript.TypeScriptProject.addCompileCommand</p></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><h3 class="tsd-anchor-link" id="adddeps"><span>add<wbr/>Deps</span><a href="#adddeps" 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><ul class="tsd-signatures tsd-is-inherited tsd-is-external"><li class="tsd-is-inherited tsd-is-external"><div class="tsd-signature tsd-anchor-link" id="adddeps-1"><span class="tsd-kind-call-signature">addDeps</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">deps</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#adddeps-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></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Defines normal dependencies.</p>
|
|
182
182
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">deps</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>Names modules to install. By default, the the dependency will
|
|
183
|
-
be installed in the next <code>
|
|
184
|
-
in your <code>package.json</code> file. You can upgrade manually or using <code>
|
|
183
|
+
be installed in the next <code>pnpm projen</code> run and the version will be recorded
|
|
184
|
+
in your <code>package.json</code> file. You can upgrade manually or using <code>pnpm add/update</code>. If you wish to specify a version range use this syntax:
|
|
185
185
|
<code>module@^7</code>.</p>
|
|
186
186
|
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from typescript.TypeScriptProject.addDeps</p></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><h3 class="tsd-anchor-link" id="adddevdeps"><span>add<wbr/>Dev<wbr/>Deps</span><a href="#adddevdeps" 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><ul class="tsd-signatures tsd-is-inherited tsd-is-external"><li class="tsd-is-inherited tsd-is-external"><div class="tsd-signature tsd-anchor-link" id="adddevdeps-1"><span class="tsd-kind-call-signature">addDevDeps</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">deps</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#adddevdeps-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></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Defines development/test dependencies.</p>
|
|
187
187
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">deps</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>Names modules to install. By default, the the dependency will
|
|
188
|
-
be installed in the next <code>
|
|
189
|
-
in your <code>package.json</code> file. You can upgrade manually or using <code>
|
|
188
|
+
be installed in the next <code>pnpm projen</code> run and the version will be recorded
|
|
189
|
+
in your <code>package.json</code> file. You can upgrade manually or using <code>pnpm add/update</code>. If you wish to specify a version range use this syntax:
|
|
190
190
|
<code>module@^7</code>.</p>
|
|
191
191
|
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from typescript.TypeScriptProject.addDevDeps</p></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><h3 class="tsd-anchor-link" id="addexcludefromcleanup"><span>add<wbr/>Exclude<wbr/>From<wbr/>Cleanup</span><a href="#addexcludefromcleanup" 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><ul class="tsd-signatures tsd-is-inherited tsd-is-external"><li class="tsd-is-inherited tsd-is-external"><div class="tsd-signature tsd-anchor-link" id="addexcludefromcleanup-1"><span class="tsd-kind-call-signature">addExcludeFromCleanup</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">globs</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addexcludefromcleanup-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></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Exclude the matching files from pre-synth cleanup. Can be used when, for example, some
|
|
192
192
|
source files include the projen marker and we don't want them to be erased during synth.</p>
|
|
@@ -205,8 +205,8 @@ source files include the projen marker and we don't want them to be erased durin
|
|
|
205
205
|
pinned version of the declared peer. This will ensure that you are testing
|
|
206
206
|
your code against the minimum version required from your consumers.</p>
|
|
207
207
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">deps</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>Names modules to install. By default, the the dependency will
|
|
208
|
-
be installed in the next <code>
|
|
209
|
-
in your <code>package.json</code> file. You can upgrade manually or using <code>
|
|
208
|
+
be installed in the next <code>pnpm projen</code> run and the version will be recorded
|
|
209
|
+
in your <code>package.json</code> file. You can upgrade manually or using <code>pnpm add/update</code>. If you wish to specify a version range use this syntax:
|
|
210
210
|
<code>module@^7</code>.</p>
|
|
211
211
|
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from typescript.TypeScriptProject.addPeerDeps</p></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><h3 class="tsd-anchor-link" id="addscripts"><span>add<wbr/>Scripts</span><a href="#addscripts" 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><ul class="tsd-signatures tsd-is-inherited tsd-is-external"><li class="tsd-is-inherited tsd-is-external"><div class="tsd-signature tsd-anchor-link" id="addscripts-1"><span class="tsd-kind-call-signature">addScripts</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scripts</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">name</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addscripts-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></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Replaces the contents of multiple npm package.json scripts.</p>
|
|
212
212
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">scripts</span>: <span class="tsd-signature-symbol">{</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">name</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><div class="tsd-comment tsd-typography"><p>The scripts to set</p>
|
|
@@ -242,7 +242,7 @@ workflow.</p>
|
|
|
242
242
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-type">RenderWorkflowSetupOptions</span></span><div class="tsd-comment tsd-typography"><p>Options.</p>
|
|
243
243
|
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">JobStep</span><span class="tsd-signature-symbol">[]</span></h4><p>Job steps</p>
|
|
244
244
|
<aside class="tsd-sources"><p>Inherited from typescript.TypeScriptProject.renderWorkflowSetup</p></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><h3 class="tsd-anchor-link" id="runtaskcommand"><span>run<wbr/>Task<wbr/>Command</span><a href="#runtaskcommand" 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><ul class="tsd-signatures tsd-is-inherited tsd-is-external"><li class="tsd-is-inherited tsd-is-external"><div class="tsd-signature tsd-anchor-link" id="runtaskcommand-1"><span class="tsd-kind-call-signature">runTaskCommand</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">task</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Task</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><a href="#runtaskcommand-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></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Returns the shell command to execute in order to run a task. This will
|
|
245
|
-
typically be <code>
|
|
245
|
+
typically be <code>pnpm projen TASK</code>.</p>
|
|
246
246
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">task</span>: <span class="tsd-signature-type">Task</span></span><div class="tsd-comment tsd-typography"><p>The task for which the command is required</p>
|
|
247
247
|
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><p>Inherited from typescript.TypeScriptProject.runTaskCommand</p></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><h3 class="tsd-anchor-link" id="setscript"><span>set<wbr/>Script</span><a href="#setscript" 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><ul class="tsd-signatures tsd-is-inherited tsd-is-external"><li class="tsd-is-inherited tsd-is-external"><div class="tsd-signature tsd-anchor-link" id="setscript-1"><span class="tsd-kind-call-signature">setScript</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">command</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> <span class="tsd-signature-type">void</span><a href="#setscript-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></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Replaces the contents of an npm package.json script.</p>
|
|
248
248
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The script name</p>
|