projen-modules 5.7.31 → 5.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/API.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  A CDK application in TypeScript.
8
8
 
9
- Defaults to the Node.js 24 Lambda runtime (`lambdaOptions.runtime`) with
9
+ Defaults to the Node.js 26 Lambda runtime (`lambdaOptions.runtime`) with
10
10
  matching `@types/node`, builds and tests on the runtime's Node.js version
11
11
  (`workflowNodeVersion`), and Jest 30 (`jestOptions.jestVersion`).
12
12
 
@@ -5845,11 +5845,14 @@ const cdkTypeScriptAppOptions: CdkTypeScriptAppOptions = { ... }
5845
5845
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.npmRegistryUrl">npmRegistryUrl</a></code> | <code>string</code> | The base URL of the npm package registry. |
5846
5846
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.npmTokenSecret">npmTokenSecret</a></code> | <code>string</code> | GitHub secret which contains the NPM token to use when publishing packages. |
5847
5847
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.npmTrustedPublishing">npmTrustedPublishing</a></code> | <code>boolean</code> | Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work. |
5848
+ | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.npmVerifyPublished">npmVerifyPublished</a></code> | <code>boolean</code> | Wait until the published package version is available from the npm registry before the publish job completes. |
5849
+ | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.npmVerifyPublishedTimeoutSeconds">npmVerifyPublishedTimeoutSeconds</a></code> | <code>number</code> | How long to wait, in seconds, for the published package version to be available. |
5848
5850
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.outdir">outdir</a></code> | <code>string</code> | The root directory of the project. Relative to this directory, all files are synthesized. |
5849
5851
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.package">package</a></code> | <code>boolean</code> | Defines a `package` task that will produce an npm tarball under the artifacts directory (e.g. `dist`). |
5850
5852
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.packageManager">packageManager</a></code> | <code>projen.javascript.NodePackageManager</code> | The Node Package Manager used to execute scripts. |
5851
5853
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.packageName">packageName</a></code> | <code>string</code> | The "name" in package.json. |
5852
5854
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.parent">parent</a></code> | <code>projen.Project</code> | The parent project, if this project is part of a bigger project. |
5855
+ | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.peerDependenciesMeta">peerDependenciesMeta</a></code> | <code>{[ key: string ]: projen.javascript.PeerDependencyMeta}</code> | Additional information about how peer dependencies are used, rendered as `peerDependenciesMeta` in `package.json`. For example, this can mark peer dependencies as optional. Each key must also be declared as a peer dependency. |
5853
5856
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.peerDependencyOptions">peerDependencyOptions</a></code> | <code>projen.javascript.PeerDependencyOptions</code> | Options for `peerDeps`. |
5854
5857
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.peerDeps">peerDeps</a></code> | <code>string[]</code> | Peer dependencies for this module. |
5855
5858
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.pnpmOptions">pnpmOptions</a></code> | <code>projen.javascript.PnpmOptions</code> | Options for pnpm. |
@@ -5908,6 +5911,7 @@ const cdkTypeScriptAppOptions: CdkTypeScriptAppOptions = { ... }
5908
5911
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.typecheckTests">typecheckTests</a></code> | <code>boolean</code> | Type-check the test suite as part of the `test` task. |
5909
5912
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.typescriptVersion">typescriptVersion</a></code> | <code>string</code> | TypeScript version to use. |
5910
5913
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.versionrcOptions">versionrcOptions</a></code> | <code>{[ key: string ]: any}</code> | Custom configuration used when creating changelog with commit-and-tag-version package. |
5914
+ | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.versionReporting">versionReporting</a></code> | <code>boolean</code> | Enable AWS CDK library version reporting. |
5911
5915
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.vscode">vscode</a></code> | <code>boolean</code> | Enable VSCode integration. |
5912
5916
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.watchExcludes">watchExcludes</a></code> | <code>string[]</code> | Glob patterns to exclude from `cdk watch`. |
5913
5917
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.watchIncludes">watchIncludes</a></code> | <code>string[]</code> | Glob patterns to include in `cdk watch`. |
@@ -5916,6 +5920,7 @@ const cdkTypeScriptAppOptions: CdkTypeScriptAppOptions = { ... }
5916
5920
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.workflowGitIdentity">workflowGitIdentity</a></code> | <code>projen.github.GitIdentity</code> | The git identity to use in workflows. |
5917
5921
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.workflowNodeVersion">workflowNodeVersion</a></code> | <code>string</code> | The node version used in GitHub Actions workflows. |
5918
5922
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.workflowPackageCache">workflowPackageCache</a></code> | <code>boolean</code> | Enable Node.js package cache in GitHub workflows. |
5923
+ | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.workflowPermissions">workflowPermissions</a></code> | <code>projen.github.workflows.JobPermissions</code> | Permissions for the main build, release and dependency upgrade jobs. |
5919
5924
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.workflowRunsOn">workflowRunsOn</a></code> | <code>string[]</code> | Github Runner selection labels. |
5920
5925
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.workflowRunsOnGroup">workflowRunsOnGroup</a></code> | <code>projen.GroupRunnerOptions</code> | Github Runner Group selection options. |
5921
5926
  | <code><a href="#projen-modules.CdkTypeScriptAppOptions.property.yarnBerryOptions">yarnBerryOptions</a></code> | <code>projen.javascript.YarnBerryOptions</code> | Options for Yarn Berry. |
@@ -7209,6 +7214,11 @@ public readonly libdir: string;
7209
7214
 
7210
7215
  Typescript artifacts output directory.
7211
7216
 
7217
+ When `libdir` is changed, set `entrypoint` to match it (for example
7218
+ `libdir: "dist"` with `entrypoint: "dist/index.js"`). `types` follows the
7219
+ entrypoint rather than `libdir`, and `main` still defaults to
7220
+ `lib/index.js`.
7221
+
7212
7222
  ---
7213
7223
 
7214
7224
  ##### `license`<sup>Optional</sup> <a name="license" id="projen-modules.CdkTypeScriptAppOptions.property.license"></a>
@@ -7447,7 +7457,8 @@ public readonly npmRegistryUrl: string;
7447
7457
 
7448
7458
  The base URL of the npm package registry.
7449
7459
 
7450
- Must be a URL (e.g. start with "https://" or "http://")
7460
+ Must be a URL (e.g. start with "https://" or "http://").
7461
+ A trailing slash is added if missing.
7451
7462
 
7452
7463
  ---
7453
7464
 
@@ -7477,6 +7488,36 @@ Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on
7477
7488
 
7478
7489
  ---
7479
7490
 
7491
+ ##### `npmVerifyPublished`<sup>Optional</sup> <a name="npmVerifyPublished" id="projen-modules.CdkTypeScriptAppOptions.property.npmVerifyPublished"></a>
7492
+
7493
+ ```typescript
7494
+ public readonly npmVerifyPublished: boolean;
7495
+ ```
7496
+
7497
+ - *Type:* boolean
7498
+ - *Default:* false
7499
+
7500
+ Wait until the published package version is available from the npm registry before the publish job completes.
7501
+
7502
+ Enable this when packages that depend on the published package are released right after.
7503
+
7504
+ ---
7505
+
7506
+ ##### `npmVerifyPublishedTimeoutSeconds`<sup>Optional</sup> <a name="npmVerifyPublishedTimeoutSeconds" id="projen-modules.CdkTypeScriptAppOptions.property.npmVerifyPublishedTimeoutSeconds"></a>
7507
+
7508
+ ```typescript
7509
+ public readonly npmVerifyPublishedTimeoutSeconds: number;
7510
+ ```
7511
+
7512
+ - *Type:* number
7513
+ - *Default:* 3600
7514
+
7515
+ How long to wait, in seconds, for the published package version to be available.
7516
+
7517
+ Requires `npmVerifyPublished` to be enabled.
7518
+
7519
+ ---
7520
+
7480
7521
  ##### `outdir`<sup>Optional</sup> <a name="outdir" id="projen-modules.CdkTypeScriptAppOptions.property.outdir"></a>
7481
7522
 
7482
7523
  ```typescript
@@ -7545,6 +7586,19 @@ The parent project, if this project is part of a bigger project.
7545
7586
 
7546
7587
  ---
7547
7588
 
7589
+ ##### `peerDependenciesMeta`<sup>Optional</sup> <a name="peerDependenciesMeta" id="projen-modules.CdkTypeScriptAppOptions.property.peerDependenciesMeta"></a>
7590
+
7591
+ ```typescript
7592
+ public readonly peerDependenciesMeta: {[ key: string ]: PeerDependencyMeta};
7593
+ ```
7594
+
7595
+ - *Type:* {[ key: string ]: projen.javascript.PeerDependencyMeta}
7596
+ - *Default:* no `peerDependenciesMeta`
7597
+
7598
+ Additional information about how peer dependencies are used, rendered as `peerDependenciesMeta` in `package.json`. For example, this can mark peer dependencies as optional. Each key must also be declared as a peer dependency.
7599
+
7600
+ ---
7601
+
7548
7602
  ##### `peerDependencyOptions`<sup>Optional</sup> <a name="peerDependencyOptions" id="projen-modules.CdkTypeScriptAppOptions.property.peerDependencyOptions"></a>
7549
7603
 
7550
7604
  ```typescript
@@ -8361,6 +8415,19 @@ Given values either append to default configuration or overwrite values in it.
8361
8415
 
8362
8416
  ---
8363
8417
 
8418
+ ##### `versionReporting`<sup>Optional</sup> <a name="versionReporting" id="projen-modules.CdkTypeScriptAppOptions.property.versionReporting"></a>
8419
+
8420
+ ```typescript
8421
+ public readonly versionReporting: boolean;
8422
+ ```
8423
+
8424
+ - *Type:* boolean
8425
+ - *Default:* use the AWS CDK default
8426
+
8427
+ Enable AWS CDK library version reporting.
8428
+
8429
+ ---
8430
+
8364
8431
  ##### `vscode`<sup>Optional</sup> <a name="vscode" id="projen-modules.CdkTypeScriptAppOptions.property.vscode"></a>
8365
8432
 
8366
8433
  ```typescript
@@ -8448,7 +8515,7 @@ public readonly workflowNodeVersion: string;
8448
8515
  ```
8449
8516
 
8450
8517
  - *Type:* string
8451
- - *Default:* the Node.js version of the Lambda runtime (`lambdaOptions.runtime`), such as `24.x`, unless `minNodeVersion` is set
8518
+ - *Default:* the Node.js version of the Lambda runtime (`lambdaOptions.runtime`), such as `26.x`, unless `minNodeVersion` is set
8452
8519
 
8453
8520
  The node version used in GitHub Actions workflows.
8454
8521
 
@@ -8469,6 +8536,28 @@ Enable Node.js package cache in GitHub workflows.
8469
8536
 
8470
8537
  ---
8471
8538
 
8539
+ ##### `workflowPermissions`<sup>Optional</sup> <a name="workflowPermissions" id="projen-modules.CdkTypeScriptAppOptions.property.workflowPermissions"></a>
8540
+
8541
+ ```typescript
8542
+ public readonly workflowPermissions: JobPermissions;
8543
+ ```
8544
+
8545
+ - *Type:* projen.github.workflows.JobPermissions
8546
+ - *Default:* Use the job defaults and automatically inferred permissions.
8547
+
8548
+ Permissions for the main build, release and dependency upgrade jobs.
8549
+
8550
+ Defined scopes override the job defaults and automatically inferred permissions,
8551
+ including CodeArtifact and Codecov OIDC. Undefined scopes keep their defaults.
8552
+ Use `JobPermission.NONE` to explicitly remove a permission.
8553
+
8554
+ `buildWorkflowOptions.permissions` replaces this entire set, including automatic
8555
+ permissions. `depsUpgradeOptions.workflowOptions.permissions` overrides individual
8556
+ scopes. Applies to all release branches, but not to separate package, publishing,
8557
+ self-mutation or pull request creation jobs, or unrelated workflows.
8558
+
8559
+ ---
8560
+
8472
8561
  ##### ~~`workflowRunsOn`~~<sup>Optional</sup> <a name="workflowRunsOn" id="projen-modules.CdkTypeScriptAppOptions.property.workflowRunsOn"></a>
8473
8562
 
8474
8563
  - *Deprecated:* use `githubOptions.workflowRunsOn` on the project, or `runsOn` on `ReleaseOptions`
@@ -8726,11 +8815,14 @@ const jsiiProjectOptions: JsiiProjectOptions = { ... }
8726
8815
  | <code><a href="#projen-modules.JsiiProjectOptions.property.npmRegistryUrl">npmRegistryUrl</a></code> | <code>string</code> | The base URL of the npm package registry. |
8727
8816
  | <code><a href="#projen-modules.JsiiProjectOptions.property.npmTokenSecret">npmTokenSecret</a></code> | <code>string</code> | GitHub secret which contains the NPM token to use when publishing packages. |
8728
8817
  | <code><a href="#projen-modules.JsiiProjectOptions.property.npmTrustedPublishing">npmTrustedPublishing</a></code> | <code>boolean</code> | Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work. |
8818
+ | <code><a href="#projen-modules.JsiiProjectOptions.property.npmVerifyPublished">npmVerifyPublished</a></code> | <code>boolean</code> | Wait until the published package version is available from the npm registry before the publish job completes. |
8819
+ | <code><a href="#projen-modules.JsiiProjectOptions.property.npmVerifyPublishedTimeoutSeconds">npmVerifyPublishedTimeoutSeconds</a></code> | <code>number</code> | How long to wait, in seconds, for the published package version to be available. |
8729
8820
  | <code><a href="#projen-modules.JsiiProjectOptions.property.outdir">outdir</a></code> | <code>string</code> | The root directory of the project. Relative to this directory, all files are synthesized. |
8730
8821
  | <code><a href="#projen-modules.JsiiProjectOptions.property.package">package</a></code> | <code>boolean</code> | Defines a `package` task that will produce an npm tarball under the artifacts directory (e.g. `dist`). |
8731
8822
  | <code><a href="#projen-modules.JsiiProjectOptions.property.packageManager">packageManager</a></code> | <code>projen.javascript.NodePackageManager</code> | The Node Package Manager used to execute scripts. |
8732
8823
  | <code><a href="#projen-modules.JsiiProjectOptions.property.packageName">packageName</a></code> | <code>string</code> | The "name" in package.json. |
8733
8824
  | <code><a href="#projen-modules.JsiiProjectOptions.property.parent">parent</a></code> | <code>projen.Project</code> | The parent project, if this project is part of a bigger project. |
8825
+ | <code><a href="#projen-modules.JsiiProjectOptions.property.peerDependenciesMeta">peerDependenciesMeta</a></code> | <code>{[ key: string ]: projen.javascript.PeerDependencyMeta}</code> | Additional information about how peer dependencies are used, rendered as `peerDependenciesMeta` in `package.json`. For example, this can mark peer dependencies as optional. Each key must also be declared as a peer dependency. |
8734
8826
  | <code><a href="#projen-modules.JsiiProjectOptions.property.peerDependencyOptions">peerDependencyOptions</a></code> | <code>projen.javascript.PeerDependencyOptions</code> | Options for `peerDeps`. |
8735
8827
  | <code><a href="#projen-modules.JsiiProjectOptions.property.peerDeps">peerDeps</a></code> | <code>string[]</code> | Peer dependencies for this module. |
8736
8828
  | <code><a href="#projen-modules.JsiiProjectOptions.property.pnpmOptions">pnpmOptions</a></code> | <code>projen.javascript.PnpmOptions</code> | Options for pnpm. |
@@ -8799,6 +8891,7 @@ const jsiiProjectOptions: JsiiProjectOptions = { ... }
8799
8891
  | <code><a href="#projen-modules.JsiiProjectOptions.property.workflowGitIdentity">workflowGitIdentity</a></code> | <code>projen.github.GitIdentity</code> | The git identity to use in workflows. |
8800
8892
  | <code><a href="#projen-modules.JsiiProjectOptions.property.workflowNodeVersion">workflowNodeVersion</a></code> | <code>string</code> | The node version used in GitHub Actions workflows. |
8801
8893
  | <code><a href="#projen-modules.JsiiProjectOptions.property.workflowPackageCache">workflowPackageCache</a></code> | <code>boolean</code> | Enable Node.js package cache in GitHub workflows. |
8894
+ | <code><a href="#projen-modules.JsiiProjectOptions.property.workflowPermissions">workflowPermissions</a></code> | <code>projen.github.workflows.JobPermissions</code> | Permissions for the main build, release and dependency upgrade jobs. |
8802
8895
  | <code><a href="#projen-modules.JsiiProjectOptions.property.workflowRunsOn">workflowRunsOn</a></code> | <code>string[]</code> | Github Runner selection labels. |
8803
8896
  | <code><a href="#projen-modules.JsiiProjectOptions.property.workflowRunsOnGroup">workflowRunsOnGroup</a></code> | <code>projen.GroupRunnerOptions</code> | Github Runner Group selection options. |
8804
8897
  | <code><a href="#projen-modules.JsiiProjectOptions.property.yarnBerryOptions">yarnBerryOptions</a></code> | <code>projen.javascript.YarnBerryOptions</code> | Options for Yarn Berry. |
@@ -9770,6 +9863,8 @@ By default, jsii will include all *.ts files (except .d.ts files) in the TypeScr
9770
9863
  This can be problematic for example when the package's build or test procedure generates .ts files
9771
9864
  that cannot be compiled with jsii's compiler settings.
9772
9865
 
9866
+ When ESLint is enabled, these patterns are also added to its ignore patterns.
9867
+
9773
9868
  ---
9774
9869
 
9775
9870
  ##### `github`<sup>Optional</sup> <a name="github" id="projen-modules.JsiiProjectOptions.property.github"></a>
@@ -9959,6 +10054,11 @@ public readonly libdir: string;
9959
10054
 
9960
10055
  Typescript artifacts output directory.
9961
10056
 
10057
+ When `libdir` is changed, set `entrypoint` to match it (for example
10058
+ `libdir: "dist"` with `entrypoint: "dist/index.js"`). `types` follows the
10059
+ entrypoint rather than `libdir`, and `main` still defaults to
10060
+ `lib/index.js`.
10061
+
9962
10062
  ---
9963
10063
 
9964
10064
  ##### `license`<sup>Optional</sup> <a name="license" id="projen-modules.JsiiProjectOptions.property.license"></a>
@@ -10197,7 +10297,8 @@ public readonly npmRegistryUrl: string;
10197
10297
 
10198
10298
  The base URL of the npm package registry.
10199
10299
 
10200
- Must be a URL (e.g. start with "https://" or "http://")
10300
+ Must be a URL (e.g. start with "https://" or "http://").
10301
+ A trailing slash is added if missing.
10201
10302
 
10202
10303
  ---
10203
10304
 
@@ -10227,6 +10328,36 @@ Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on
10227
10328
 
10228
10329
  ---
10229
10330
 
10331
+ ##### `npmVerifyPublished`<sup>Optional</sup> <a name="npmVerifyPublished" id="projen-modules.JsiiProjectOptions.property.npmVerifyPublished"></a>
10332
+
10333
+ ```typescript
10334
+ public readonly npmVerifyPublished: boolean;
10335
+ ```
10336
+
10337
+ - *Type:* boolean
10338
+ - *Default:* false
10339
+
10340
+ Wait until the published package version is available from the npm registry before the publish job completes.
10341
+
10342
+ Enable this when packages that depend on the published package are released right after.
10343
+
10344
+ ---
10345
+
10346
+ ##### `npmVerifyPublishedTimeoutSeconds`<sup>Optional</sup> <a name="npmVerifyPublishedTimeoutSeconds" id="projen-modules.JsiiProjectOptions.property.npmVerifyPublishedTimeoutSeconds"></a>
10347
+
10348
+ ```typescript
10349
+ public readonly npmVerifyPublishedTimeoutSeconds: number;
10350
+ ```
10351
+
10352
+ - *Type:* number
10353
+ - *Default:* 3600
10354
+
10355
+ How long to wait, in seconds, for the published package version to be available.
10356
+
10357
+ Requires `npmVerifyPublished` to be enabled.
10358
+
10359
+ ---
10360
+
10230
10361
  ##### `outdir`<sup>Optional</sup> <a name="outdir" id="projen-modules.JsiiProjectOptions.property.outdir"></a>
10231
10362
 
10232
10363
  ```typescript
@@ -10295,6 +10426,19 @@ The parent project, if this project is part of a bigger project.
10295
10426
 
10296
10427
  ---
10297
10428
 
10429
+ ##### `peerDependenciesMeta`<sup>Optional</sup> <a name="peerDependenciesMeta" id="projen-modules.JsiiProjectOptions.property.peerDependenciesMeta"></a>
10430
+
10431
+ ```typescript
10432
+ public readonly peerDependenciesMeta: {[ key: string ]: PeerDependencyMeta};
10433
+ ```
10434
+
10435
+ - *Type:* {[ key: string ]: projen.javascript.PeerDependencyMeta}
10436
+ - *Default:* no `peerDependenciesMeta`
10437
+
10438
+ Additional information about how peer dependencies are used, rendered as `peerDependenciesMeta` in `package.json`. For example, this can mark peer dependencies as optional. Each key must also be declared as a peer dependency.
10439
+
10440
+ ---
10441
+
10298
10442
  ##### `peerDependencyOptions`<sup>Optional</sup> <a name="peerDependencyOptions" id="projen-modules.JsiiProjectOptions.property.peerDependencyOptions"></a>
10299
10443
 
10300
10444
  ```typescript
@@ -10600,6 +10744,9 @@ public readonly publishToGo: JsiiGoTarget;
10600
10744
 
10601
10745
  Publish Go bindings to a git repository.
10602
10746
 
10747
+ A separate repository is recommended. If `moduleName` refers to the source
10748
+ repository, set `publishToSourceRepository` to `true`.
10749
+
10603
10750
  ---
10604
10751
 
10605
10752
  ##### `publishToMaven`<sup>Optional</sup> <a name="publishToMaven" id="projen-modules.JsiiProjectOptions.property.publishToMaven"></a>
@@ -11246,6 +11393,28 @@ Enable Node.js package cache in GitHub workflows.
11246
11393
 
11247
11394
  ---
11248
11395
 
11396
+ ##### `workflowPermissions`<sup>Optional</sup> <a name="workflowPermissions" id="projen-modules.JsiiProjectOptions.property.workflowPermissions"></a>
11397
+
11398
+ ```typescript
11399
+ public readonly workflowPermissions: JobPermissions;
11400
+ ```
11401
+
11402
+ - *Type:* projen.github.workflows.JobPermissions
11403
+ - *Default:* Use the job defaults and automatically inferred permissions.
11404
+
11405
+ Permissions for the main build, release and dependency upgrade jobs.
11406
+
11407
+ Defined scopes override the job defaults and automatically inferred permissions,
11408
+ including CodeArtifact and Codecov OIDC. Undefined scopes keep their defaults.
11409
+ Use `JobPermission.NONE` to explicitly remove a permission.
11410
+
11411
+ `buildWorkflowOptions.permissions` replaces this entire set, including automatic
11412
+ permissions. `depsUpgradeOptions.workflowOptions.permissions` overrides individual
11413
+ scopes. Applies to all release branches, but not to separate package, publishing,
11414
+ self-mutation or pull request creation jobs, or unrelated workflows.
11415
+
11416
+ ---
11417
+
11249
11418
  ##### ~~`workflowRunsOn`~~<sup>Optional</sup> <a name="workflowRunsOn" id="projen-modules.JsiiProjectOptions.property.workflowRunsOn"></a>
11250
11419
 
11251
11420
  - *Deprecated:* use `githubOptions.workflowRunsOn` on the project, or `runsOn` on `ReleaseOptions`
@@ -11390,11 +11559,14 @@ const npmPackageOptions: NpmPackageOptions = { ... }
11390
11559
  | <code><a href="#projen-modules.NpmPackageOptions.property.npmRegistryUrl">npmRegistryUrl</a></code> | <code>string</code> | The base URL of the npm package registry. |
11391
11560
  | <code><a href="#projen-modules.NpmPackageOptions.property.npmTokenSecret">npmTokenSecret</a></code> | <code>string</code> | GitHub secret which contains the NPM token to use when publishing packages. |
11392
11561
  | <code><a href="#projen-modules.NpmPackageOptions.property.npmTrustedPublishing">npmTrustedPublishing</a></code> | <code>boolean</code> | Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work. |
11562
+ | <code><a href="#projen-modules.NpmPackageOptions.property.npmVerifyPublished">npmVerifyPublished</a></code> | <code>boolean</code> | Wait until the published package version is available from the npm registry before the publish job completes. |
11563
+ | <code><a href="#projen-modules.NpmPackageOptions.property.npmVerifyPublishedTimeoutSeconds">npmVerifyPublishedTimeoutSeconds</a></code> | <code>number</code> | How long to wait, in seconds, for the published package version to be available. |
11393
11564
  | <code><a href="#projen-modules.NpmPackageOptions.property.outdir">outdir</a></code> | <code>string</code> | The root directory of the project. Relative to this directory, all files are synthesized. |
11394
11565
  | <code><a href="#projen-modules.NpmPackageOptions.property.package">package</a></code> | <code>boolean</code> | Defines a `package` task that will produce an npm tarball under the artifacts directory (e.g. `dist`). |
11395
11566
  | <code><a href="#projen-modules.NpmPackageOptions.property.packageManager">packageManager</a></code> | <code>projen.javascript.NodePackageManager</code> | The Node Package Manager used to execute scripts. |
11396
11567
  | <code><a href="#projen-modules.NpmPackageOptions.property.packageName">packageName</a></code> | <code>string</code> | The "name" in package.json. |
11397
11568
  | <code><a href="#projen-modules.NpmPackageOptions.property.parent">parent</a></code> | <code>projen.Project</code> | The parent project, if this project is part of a bigger project. |
11569
+ | <code><a href="#projen-modules.NpmPackageOptions.property.peerDependenciesMeta">peerDependenciesMeta</a></code> | <code>{[ key: string ]: projen.javascript.PeerDependencyMeta}</code> | Additional information about how peer dependencies are used, rendered as `peerDependenciesMeta` in `package.json`. For example, this can mark peer dependencies as optional. Each key must also be declared as a peer dependency. |
11398
11570
  | <code><a href="#projen-modules.NpmPackageOptions.property.peerDependencyOptions">peerDependencyOptions</a></code> | <code>projen.javascript.PeerDependencyOptions</code> | Options for `peerDeps`. |
11399
11571
  | <code><a href="#projen-modules.NpmPackageOptions.property.peerDeps">peerDeps</a></code> | <code>string[]</code> | Peer dependencies for this module. |
11400
11572
  | <code><a href="#projen-modules.NpmPackageOptions.property.pnpmOptions">pnpmOptions</a></code> | <code>projen.javascript.PnpmOptions</code> | Options for pnpm. |
@@ -11457,6 +11629,7 @@ const npmPackageOptions: NpmPackageOptions = { ... }
11457
11629
  | <code><a href="#projen-modules.NpmPackageOptions.property.workflowGitIdentity">workflowGitIdentity</a></code> | <code>projen.github.GitIdentity</code> | The git identity to use in workflows. |
11458
11630
  | <code><a href="#projen-modules.NpmPackageOptions.property.workflowNodeVersion">workflowNodeVersion</a></code> | <code>string</code> | The node version used in GitHub Actions workflows. |
11459
11631
  | <code><a href="#projen-modules.NpmPackageOptions.property.workflowPackageCache">workflowPackageCache</a></code> | <code>boolean</code> | Enable Node.js package cache in GitHub workflows. |
11632
+ | <code><a href="#projen-modules.NpmPackageOptions.property.workflowPermissions">workflowPermissions</a></code> | <code>projen.github.workflows.JobPermissions</code> | Permissions for the main build, release and dependency upgrade jobs. |
11460
11633
  | <code><a href="#projen-modules.NpmPackageOptions.property.workflowRunsOn">workflowRunsOn</a></code> | <code>string[]</code> | Github Runner selection labels. |
11461
11634
  | <code><a href="#projen-modules.NpmPackageOptions.property.workflowRunsOnGroup">workflowRunsOnGroup</a></code> | <code>projen.GroupRunnerOptions</code> | Github Runner Group selection options. |
11462
11635
  | <code><a href="#projen-modules.NpmPackageOptions.property.yarnBerryOptions">yarnBerryOptions</a></code> | <code>projen.javascript.YarnBerryOptions</code> | Options for Yarn Berry. |
@@ -12474,6 +12647,11 @@ public readonly libdir: string;
12474
12647
 
12475
12648
  Typescript artifacts output directory.
12476
12649
 
12650
+ When `libdir` is changed, set `entrypoint` to match it (for example
12651
+ `libdir: "dist"` with `entrypoint: "dist/index.js"`). `types` follows the
12652
+ entrypoint rather than `libdir`, and `main` still defaults to
12653
+ `lib/index.js`.
12654
+
12477
12655
  ---
12478
12656
 
12479
12657
  ##### `license`<sup>Optional</sup> <a name="license" id="projen-modules.NpmPackageOptions.property.license"></a>
@@ -12712,7 +12890,8 @@ public readonly npmRegistryUrl: string;
12712
12890
 
12713
12891
  The base URL of the npm package registry.
12714
12892
 
12715
- Must be a URL (e.g. start with "https://" or "http://")
12893
+ Must be a URL (e.g. start with "https://" or "http://").
12894
+ A trailing slash is added if missing.
12716
12895
 
12717
12896
  ---
12718
12897
 
@@ -12742,6 +12921,36 @@ Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on
12742
12921
 
12743
12922
  ---
12744
12923
 
12924
+ ##### `npmVerifyPublished`<sup>Optional</sup> <a name="npmVerifyPublished" id="projen-modules.NpmPackageOptions.property.npmVerifyPublished"></a>
12925
+
12926
+ ```typescript
12927
+ public readonly npmVerifyPublished: boolean;
12928
+ ```
12929
+
12930
+ - *Type:* boolean
12931
+ - *Default:* false
12932
+
12933
+ Wait until the published package version is available from the npm registry before the publish job completes.
12934
+
12935
+ Enable this when packages that depend on the published package are released right after.
12936
+
12937
+ ---
12938
+
12939
+ ##### `npmVerifyPublishedTimeoutSeconds`<sup>Optional</sup> <a name="npmVerifyPublishedTimeoutSeconds" id="projen-modules.NpmPackageOptions.property.npmVerifyPublishedTimeoutSeconds"></a>
12940
+
12941
+ ```typescript
12942
+ public readonly npmVerifyPublishedTimeoutSeconds: number;
12943
+ ```
12944
+
12945
+ - *Type:* number
12946
+ - *Default:* 3600
12947
+
12948
+ How long to wait, in seconds, for the published package version to be available.
12949
+
12950
+ Requires `npmVerifyPublished` to be enabled.
12951
+
12952
+ ---
12953
+
12745
12954
  ##### `outdir`<sup>Optional</sup> <a name="outdir" id="projen-modules.NpmPackageOptions.property.outdir"></a>
12746
12955
 
12747
12956
  ```typescript
@@ -12810,6 +13019,19 @@ The parent project, if this project is part of a bigger project.
12810
13019
 
12811
13020
  ---
12812
13021
 
13022
+ ##### `peerDependenciesMeta`<sup>Optional</sup> <a name="peerDependenciesMeta" id="projen-modules.NpmPackageOptions.property.peerDependenciesMeta"></a>
13023
+
13024
+ ```typescript
13025
+ public readonly peerDependenciesMeta: {[ key: string ]: PeerDependencyMeta};
13026
+ ```
13027
+
13028
+ - *Type:* {[ key: string ]: projen.javascript.PeerDependencyMeta}
13029
+ - *Default:* no `peerDependenciesMeta`
13030
+
13031
+ Additional information about how peer dependencies are used, rendered as `peerDependenciesMeta` in `package.json`. For example, this can mark peer dependencies as optional. Each key must also be declared as a peer dependency.
13032
+
13033
+ ---
13034
+
12813
13035
  ##### `peerDependencyOptions`<sup>Optional</sup> <a name="peerDependencyOptions" id="projen-modules.NpmPackageOptions.property.peerDependencyOptions"></a>
12814
13036
 
12815
13037
  ```typescript
@@ -13682,6 +13904,28 @@ Enable Node.js package cache in GitHub workflows.
13682
13904
 
13683
13905
  ---
13684
13906
 
13907
+ ##### `workflowPermissions`<sup>Optional</sup> <a name="workflowPermissions" id="projen-modules.NpmPackageOptions.property.workflowPermissions"></a>
13908
+
13909
+ ```typescript
13910
+ public readonly workflowPermissions: JobPermissions;
13911
+ ```
13912
+
13913
+ - *Type:* projen.github.workflows.JobPermissions
13914
+ - *Default:* Use the job defaults and automatically inferred permissions.
13915
+
13916
+ Permissions for the main build, release and dependency upgrade jobs.
13917
+
13918
+ Defined scopes override the job defaults and automatically inferred permissions,
13919
+ including CodeArtifact and Codecov OIDC. Undefined scopes keep their defaults.
13920
+ Use `JobPermission.NONE` to explicitly remove a permission.
13921
+
13922
+ `buildWorkflowOptions.permissions` replaces this entire set, including automatic
13923
+ permissions. `depsUpgradeOptions.workflowOptions.permissions` overrides individual
13924
+ scopes. Applies to all release branches, but not to separate package, publishing,
13925
+ self-mutation or pull request creation jobs, or unrelated workflows.
13926
+
13927
+ ---
13928
+
13685
13929
  ##### ~~`workflowRunsOn`~~<sup>Optional</sup> <a name="workflowRunsOn" id="projen-modules.NpmPackageOptions.property.workflowRunsOn"></a>
13686
13930
 
13687
13931
  - *Deprecated:* use `githubOptions.workflowRunsOn` on the project, or `runsOn` on `ReleaseOptions`
package/README.md CHANGED
@@ -7,7 +7,7 @@ A collection of custom projen modules, that can be used to bootstrap and maintai
7
7
  ## Getting Started
8
8
 
9
9
  Prerequisites:
10
- * Node.js 22
10
+ * Node.js 24
11
11
  * Yarn 1 (classic)
12
12
 
13
13
  ```sh
package/audit-ci.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "high": true,
4
4
  "report-type": "summary",
5
5
  "allowlist": [
6
- "GHSA-vfj7-8cjw-p6xm"
6
+ "GHSA-fc5q-39xc-vjpf"
7
7
  ],
8
8
  "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
9
9
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Section = void 0;
4
4
  const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
5
5
  class Section {
6
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.Section", version: "5.7.31" };
6
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.Section", version: "5.8.0" };
7
7
  options;
8
8
  constructor(options) {
9
9
  this.options = options;
@@ -9,7 +9,7 @@ const section_1 = require("./elements/section");
9
9
  * in between
10
10
  */
11
11
  class ReadmeOrder {
12
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.ReadmeOrder", version: "5.7.31" };
12
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.ReadmeOrder", version: "5.8.0" };
13
13
  /**
14
14
  * Sections a reader needs first, such as getting started
15
15
  */
@@ -35,7 +35,7 @@ class ReadmeOrder {
35
35
  }
36
36
  exports.ReadmeOrder = ReadmeOrder;
37
37
  class Readme extends projen_1.FileBase {
38
- static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.Readme", version: "5.7.31" };
38
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "projen-modules.Readme", version: "5.8.0" };
39
39
  /**
40
40
  * The README of a project, if it has one
41
41
  */
@@ -99,6 +99,12 @@ export interface CdkTypeScriptAppOptions {
99
99
  * @stability experimental
100
100
  */
101
101
  readonly watchExcludes?: Array<string>;
102
+ /**
103
+ * Enable AWS CDK library version reporting.
104
+ * @default - use the AWS CDK default
105
+ * @stability experimental
106
+ */
107
+ readonly versionReporting?: boolean;
102
108
  /**
103
109
  * To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them.
104
110
  * @default ApprovalLevel.BROADENING
@@ -224,6 +230,10 @@ export interface CdkTypeScriptAppOptions {
224
230
  readonly projenrcTs?: boolean;
225
231
  /**
226
232
  * Typescript artifacts output directory.
233
+ * When `libdir` is changed, set `entrypoint` to match it (for example
234
+ * `libdir: "dist"` with `entrypoint: "dist/index.js"`). `types` follows the
235
+ * entrypoint rather than `libdir`, and `main` still defaults to
236
+ * `lib/index.js`.
227
237
  * @default "lib"
228
238
  * @stability experimental
229
239
  */
@@ -270,6 +280,20 @@ export interface CdkTypeScriptAppOptions {
270
280
  * @stability experimental
271
281
  */
272
282
  readonly disableTsconfig?: boolean;
283
+ /**
284
+ * Permissions for the main build, release and dependency upgrade jobs.
285
+ * Defined scopes override the job defaults and automatically inferred permissions,
286
+ * including CodeArtifact and Codecov OIDC. Undefined scopes keep their defaults.
287
+ * Use `JobPermission.NONE` to explicitly remove a permission.
288
+ *
289
+ * `buildWorkflowOptions.permissions` replaces this entire set, including automatic
290
+ * permissions. `depsUpgradeOptions.workflowOptions.permissions` overrides individual
291
+ * scopes. Applies to all release branches, but not to separate package, publishing,
292
+ * self-mutation or pull request creation jobs, or unrelated workflows.
293
+ * @default - Use the job defaults and automatically inferred permissions.
294
+ * @stability experimental
295
+ */
296
+ readonly workflowPermissions?: github.workflows.JobPermissions;
273
297
  /**
274
298
  * Enable Node.js package cache in GitHub workflows.
275
299
  * @default false
@@ -279,7 +303,7 @@ export interface CdkTypeScriptAppOptions {
279
303
  /**
280
304
  * The node version used in GitHub Actions workflows.
281
305
  * Always use this option if your GitHub Actions workflows require a specific to run.
282
- * @default - the Node.js version of the Lambda runtime (`lambdaOptions.runtime`), such as `24.x`, unless `minNodeVersion` is set
306
+ * @default - the Node.js version of the Lambda runtime (`lambdaOptions.runtime`), such as `26.x`, unless `minNodeVersion` is set
283
307
  * @stability experimental
284
308
  */
285
309
  readonly workflowNodeVersion?: string;
@@ -784,6 +808,13 @@ export interface CdkTypeScriptAppOptions {
784
808
  * @stability experimental
785
809
  */
786
810
  readonly peerDependencyOptions?: javascript.PeerDependencyOptions;
811
+ /**
812
+ * Additional information about how peer dependencies are used, rendered as `peerDependenciesMeta` in `package.json`. For example, this can mark peer dependencies as optional.
813
+ * Each key must also be declared as a peer dependency.
814
+ * @default - no `peerDependenciesMeta`
815
+ * @stability experimental
816
+ */
817
+ readonly peerDependenciesMeta?: Record<string, javascript.PeerDependencyMeta>;
787
818
  /**
788
819
  * The "name" in package.json.
789
820
  * @default - defaults to project name
@@ -798,6 +829,20 @@ export interface CdkTypeScriptAppOptions {
798
829
  * @pjnew $PACKAGE_MANAGER
799
830
  */
800
831
  readonly packageManager?: javascript.NodePackageManager;
832
+ /**
833
+ * How long to wait, in seconds, for the published package version to be available.
834
+ * Requires `npmVerifyPublished` to be enabled.
835
+ * @default 3600
836
+ * @stability experimental
837
+ */
838
+ readonly npmVerifyPublishedTimeoutSeconds?: number;
839
+ /**
840
+ * Wait until the published package version is available from the npm registry before the publish job completes.
841
+ * Enable this when packages that depend on the published package are released right after.
842
+ * @default false
843
+ * @stability experimental
844
+ */
845
+ readonly npmVerifyPublished?: boolean;
801
846
  /**
802
847
  * Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work.
803
848
  * @default - false
@@ -812,7 +857,8 @@ export interface CdkTypeScriptAppOptions {
812
857
  readonly npmTokenSecret?: string;
813
858
  /**
814
859
  * The base URL of the npm package registry.
815
- * Must be a URL (e.g. start with "https://" or "http://")
860
+ * Must be a URL (e.g. start with "https://" or "http://").
861
+ * A trailing slash is added if missing.
816
862
  * @default "https://registry.npmjs.org"
817
863
  * @stability experimental
818
864
  */