@nikovirtala/projen-constructs 0.0.8 → 0.0.10

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.
@@ -0,0 +1,1092 @@
1
+ import type { awscdk, github, GitOptions, GroupRunnerOptions, IgnoreFileOptions, javascript, LoggerOptions, Project, ProjenrcJsonOptions, ReleasableCommits, release, RenovatebotOptions, SampleReadmeProps, typescript } from 'projen';
2
+ import type { VitestOptions } from '../';
3
+ /**
4
+ * AwsCdkTypeScriptAppProjectOptions
5
+ */
6
+ export interface AwsCdkTypeScriptAppProjectOptions {
7
+ /**
8
+ * Common options for all AWS Lambda functions.
9
+ * @default - default options
10
+ * @stability experimental
11
+ */
12
+ readonly lambdaOptions?: awscdk.LambdaFunctionCommonOptions;
13
+ /**
14
+ * Automatically adds an `awscdk.LambdaExtension` for each `.lambda-extension.ts` entrypoint in your source tree. If this is disabled, you can manually add an `awscdk.AutoDiscover` component to your project.
15
+ * @default true
16
+ * @stability experimental
17
+ */
18
+ readonly lambdaExtensionAutoDiscover?: boolean;
19
+ /**
20
+ * Automatically adds an `awscdk.LambdaFunction` for each `.lambda.ts` handler in your source tree. If this is disabled, you can manually add an `awscdk.AutoDiscover` component to your project.
21
+ * @default true
22
+ * @stability experimental
23
+ */
24
+ readonly lambdaAutoDiscover?: boolean;
25
+ /**
26
+ * Automatically discovers and creates integration tests for each `.integ.ts` file in under your test directory.
27
+ * @default true
28
+ * @stability experimental
29
+ */
30
+ readonly integrationTestAutoDiscover?: boolean;
31
+ /**
32
+ * Enable experimental support for the AWS CDK integ-runner.
33
+ * @default false
34
+ * @stability experimental
35
+ */
36
+ readonly experimentalIntegRunner?: boolean;
37
+ /**
38
+ * Automatically adds an `cloudfront.experimental.EdgeFunction` for each `.edge-lambda.ts` handler in your source tree. If this is disabled, you can manually add an `awscdk.AutoDiscover` component to your project.
39
+ * @default true
40
+ * @stability experimental
41
+ */
42
+ readonly edgeLambdaAutoDiscover?: boolean;
43
+ /**
44
+ * The CDK app's entrypoint (relative to the source directory, which is "src" by default).
45
+ * @default "main.ts"
46
+ * @stability experimental
47
+ */
48
+ readonly appEntrypoint?: string;
49
+ /**
50
+ * The command line to execute in order to synthesize the CDK application (language specific).
51
+ * @stability experimental
52
+ */
53
+ readonly app?: string;
54
+ /**
55
+ * Minimum version of the `constructs` library to depend on.
56
+ * @default - for CDK 1.x the default is "3.2.27", for CDK 2.x the default is
57
+ "10.0.5".
58
+ * @stability experimental
59
+ */
60
+ readonly constructsVersion?: string;
61
+ /**
62
+ * Use pinned version instead of caret version for CDK.
63
+ * You can use this to prevent mixed versions for your CDK dependencies and to prevent auto-updates.
64
+ * If you use experimental features this will let you define the moment you include breaking changes.
65
+ * @stability experimental
66
+ */
67
+ readonly cdkVersionPinning?: boolean;
68
+ /**
69
+ * Version range of the AWS CDK CLI to depend on.
70
+ * Can be either a specific version, or an NPM version range.
71
+ *
72
+ * By default, the latest 2.x version will be installed; you can use this
73
+ * option to restrict it to a specific version or version range.
74
+ * @default "^2"
75
+ * @stability experimental
76
+ */
77
+ readonly cdkCliVersion?: string;
78
+ /**
79
+ * Install the assertions library?
80
+ * Only needed for CDK 1.x. If using CDK 2.x then
81
+ * assertions is already included in 'aws-cdk-lib'
82
+ * @default - will be included by default for AWS CDK >= 1.111.0 < 2.0.0
83
+ * @stability experimental
84
+ */
85
+ readonly cdkAssertions?: boolean;
86
+ /**
87
+ * Minimum version of the AWS CDK to depend on.
88
+ * @default "2.1.0"
89
+ * @stability experimental
90
+ */
91
+ readonly cdkVersion: string;
92
+ /**
93
+ * Glob patterns to include in `cdk watch`.
94
+ * @default []
95
+ * @stability experimental
96
+ */
97
+ readonly watchIncludes?: Array<string>;
98
+ /**
99
+ * Glob patterns to exclude from `cdk watch`.
100
+ * @default []
101
+ * @stability experimental
102
+ */
103
+ readonly watchExcludes?: Array<string>;
104
+ /**
105
+ * 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.
106
+ * @default ApprovalLevel.BROADENING
107
+ * @stability experimental
108
+ */
109
+ readonly requireApproval?: awscdk.ApprovalLevel;
110
+ /**
111
+ * Feature flags that should be enabled in `cdk.json`.
112
+ * Make sure to double-check any changes to feature flags in `cdk.json` before deploying.
113
+ * Unexpected changes may cause breaking changes in your CDK app.
114
+ * You can overwrite any feature flag by passing it into the context field.
115
+ * @default - no feature flags are enabled by default
116
+ * @stability experimental
117
+ */
118
+ readonly featureFlags?: awscdk.ICdkFeatureFlags;
119
+ /**
120
+ * Additional context to include in `cdk.json`.
121
+ * @default - no additional context
122
+ * @stability experimental
123
+ */
124
+ readonly context?: Record<string, any>;
125
+ /**
126
+ * cdk.out directory.
127
+ * @default "cdk.out"
128
+ * @stability experimental
129
+ */
130
+ readonly cdkout?: string;
131
+ /**
132
+ * A command to execute before synthesis.
133
+ * This command will be called when
134
+ * running `cdk synth` or when `cdk watch` identifies a change in your source
135
+ * code before redeployment.
136
+ * @default - no build command
137
+ * @stability experimental
138
+ */
139
+ readonly buildCommand?: string;
140
+ /**
141
+ * TypeScript version to use.
142
+ * NOTE: Typescript is not semantically versioned and should remain on the
143
+ * same minor, so we recommend using a `~` dependency (e.g. `~1.2.3`).
144
+ * @default "latest"
145
+ * @stability experimental
146
+ */
147
+ readonly typescriptVersion?: string;
148
+ /**
149
+ * The name of the development tsconfig.json file.
150
+ * @default "tsconfig.dev.json"
151
+ * @stability experimental
152
+ */
153
+ readonly tsconfigDevFile?: string;
154
+ /**
155
+ * Custom tsconfig options for the development tsconfig.json file (used for testing).
156
+ * @default - use the production tsconfig options
157
+ * @stability experimental
158
+ */
159
+ readonly tsconfigDev?: javascript.TypescriptConfigOptions;
160
+ /**
161
+ * Custom TSConfig.
162
+ * @default - default options
163
+ * @stability experimental
164
+ */
165
+ readonly tsconfig?: javascript.TypescriptConfigOptions;
166
+ /**
167
+ * Jest tests directory. Tests files should be named `xxx.test.ts`.
168
+ * If this directory is under `srcdir` (e.g. `src/test`, `src/__tests__`),
169
+ * then tests are going to be compiled into `lib/` and executed as javascript.
170
+ * If the test directory is outside of `src`, then we configure jest to
171
+ * compile the code in-memory.
172
+ * @default "test"
173
+ * @stability experimental
174
+ */
175
+ readonly testdir?: string;
176
+ /**
177
+ * Typescript sources directory.
178
+ * @default "src"
179
+ * @stability experimental
180
+ */
181
+ readonly srcdir?: string;
182
+ /**
183
+ * Options for .projenrc.ts.
184
+ * @stability experimental
185
+ */
186
+ readonly projenrcTsOptions?: typescript.ProjenrcOptions;
187
+ /**
188
+ * Use TypeScript for your projenrc file (`.projenrc.ts`).
189
+ * @default false
190
+ * @stability experimental
191
+ * @pjnew true
192
+ */
193
+ readonly projenrcTs?: boolean;
194
+ /**
195
+ * Typescript artifacts output directory.
196
+ * @default "lib"
197
+ * @stability experimental
198
+ */
199
+ readonly libdir?: string;
200
+ /**
201
+ * The .d.ts file that includes the type declarations for this module.
202
+ * @default - .d.ts file derived from the project's entrypoint (usually lib/index.d.ts)
203
+ * @stability experimental
204
+ */
205
+ readonly entrypointTypes?: string;
206
+ /**
207
+ * Docs directory.
208
+ * @default "docs"
209
+ * @stability experimental
210
+ */
211
+ readonly docsDirectory?: string;
212
+ /**
213
+ * Docgen by Typedoc.
214
+ * @default false
215
+ * @stability experimental
216
+ */
217
+ readonly docgen?: boolean;
218
+ /**
219
+ * Do not generate a `tsconfig.dev.json` file.
220
+ * @default false
221
+ * @stability experimental
222
+ */
223
+ readonly disableTsconfigDev?: boolean;
224
+ /**
225
+ * Do not generate a `tsconfig.json` file (used by jsii projects since tsconfig.json is generated by the jsii compiler).
226
+ * @default false
227
+ * @stability experimental
228
+ */
229
+ readonly disableTsconfig?: boolean;
230
+ /**
231
+ * Enable Node.js package cache in GitHub workflows.
232
+ * @default false
233
+ * @stability experimental
234
+ */
235
+ readonly workflowPackageCache?: boolean;
236
+ /**
237
+ * The node version used in GitHub Actions workflows.
238
+ * Always use this option if your GitHub Actions workflows require a specific to run.
239
+ * @default - `minNodeVersion` if set, otherwise `lts/*`.
240
+ * @stability experimental
241
+ */
242
+ readonly workflowNodeVersion?: string;
243
+ /**
244
+ * The git identity to use in workflows.
245
+ * @default - default GitHub Actions user
246
+ * @stability experimental
247
+ */
248
+ readonly workflowGitIdentity?: github.GitIdentity;
249
+ /**
250
+ * Workflow steps to use in order to bootstrap this repo.
251
+ * @default "yarn install --frozen-lockfile && yarn projen"
252
+ * @stability experimental
253
+ */
254
+ readonly workflowBootstrapSteps?: Array<github.workflows.JobStep>;
255
+ /**
256
+ * Automatically release to npm when new versions are introduced.
257
+ * @default false
258
+ * @stability experimental
259
+ */
260
+ readonly releaseToNpm?: boolean;
261
+ /**
262
+ * Add release management to this project.
263
+ * @default - true (false for subprojects)
264
+ * @stability experimental
265
+ */
266
+ readonly release?: boolean;
267
+ /**
268
+ * The contents of the pull request template.
269
+ * @default - default content
270
+ * @stability experimental
271
+ */
272
+ readonly pullRequestTemplateContents?: Array<string>;
273
+ /**
274
+ * Include a GitHub pull request template.
275
+ * @default true
276
+ * @stability experimental
277
+ */
278
+ readonly pullRequestTemplate?: boolean;
279
+ /**
280
+ * Version of projen to install.
281
+ * @default - Defaults to the latest version.
282
+ * @stability experimental
283
+ */
284
+ readonly projenVersion?: string;
285
+ /**
286
+ * Options for .projenrc.js.
287
+ * @default - default options
288
+ * @stability experimental
289
+ */
290
+ readonly projenrcJsOptions?: javascript.ProjenrcOptions;
291
+ /**
292
+ * Generate (once) .projenrc.js (in JavaScript). Set to `false` in order to disable .projenrc.js generation.
293
+ * @default - true if projenrcJson is false
294
+ * @stability experimental
295
+ */
296
+ readonly projenrcJs?: boolean;
297
+ /**
298
+ * Indicates of "projen" should be installed as a devDependency.
299
+ * @default - true if not a subproject
300
+ * @stability experimental
301
+ */
302
+ readonly projenDevDependency?: boolean;
303
+ /**
304
+ * Defines a `package` task that will produce an npm tarball under the artifacts directory (e.g. `dist`).
305
+ * @default true
306
+ * @stability experimental
307
+ */
308
+ readonly package?: boolean;
309
+ /**
310
+ * Configuration options for .npmignore file.
311
+ * @stability experimental
312
+ */
313
+ readonly npmIgnoreOptions?: IgnoreFileOptions;
314
+ /**
315
+ * Defines an .npmignore file. Normally this is only needed for libraries that are packaged as tarballs.
316
+ * @default true
317
+ * @stability experimental
318
+ */
319
+ readonly npmignoreEnabled?: boolean;
320
+ /**
321
+ * Additional entries to .gitignore.
322
+ * @stability experimental
323
+ */
324
+ readonly gitignore?: Array<string>;
325
+ /**
326
+ * Options for `UpgradeDependencies`.
327
+ * @default - default options
328
+ * @stability experimental
329
+ */
330
+ readonly depsUpgradeOptions?: javascript.UpgradeDependenciesOptions;
331
+ /**
332
+ * Use tasks and github workflows to handle dependency upgrades.
333
+ * Cannot be used in conjunction with `dependabot`.
334
+ * @default true
335
+ * @stability experimental
336
+ */
337
+ readonly depsUpgrade?: boolean;
338
+ /**
339
+ * Options for dependabot.
340
+ * @default - default options
341
+ * @stability experimental
342
+ */
343
+ readonly dependabotOptions?: github.DependabotOptions;
344
+ /**
345
+ * Use dependabot to handle dependency upgrades.
346
+ * Cannot be used in conjunction with `depsUpgrade`.
347
+ * @default false
348
+ * @stability experimental
349
+ */
350
+ readonly dependabot?: boolean;
351
+ /**
352
+ * The copyright years to put in the LICENSE file.
353
+ * @default - current year
354
+ * @stability experimental
355
+ */
356
+ readonly copyrightPeriod?: string;
357
+ /**
358
+ * License copyright owner.
359
+ * @default - defaults to the value of authorName or "" if `authorName` is undefined.
360
+ * @stability experimental
361
+ */
362
+ readonly copyrightOwner?: string;
363
+ /**
364
+ * Define the secret name for a specified https://codecov.io/ token.
365
+ * @default - OIDC auth is used
366
+ * @stability experimental
367
+ */
368
+ readonly codeCovTokenSecret?: string;
369
+ /**
370
+ * Define a GitHub workflow step for sending code coverage metrics to https://codecov.io/ Uses codecov/codecov-action@v5 By default, OIDC auth is used. Alternatively a token can be provided via `codeCovTokenSecret`.
371
+ * @default false
372
+ * @stability experimental
373
+ */
374
+ readonly codeCov?: boolean;
375
+ /**
376
+ * Configure which licenses should be deemed acceptable for use by dependencies.
377
+ * This setting will cause the build to fail, if any prohibited or not allowed licenses ares encountered.
378
+ * @default - no license checks are run during the build and all licenses will be accepted
379
+ * @stability experimental
380
+ */
381
+ readonly checkLicenses?: javascript.LicenseCheckerOptions;
382
+ /**
383
+ * Options for `Bundler`.
384
+ * @stability experimental
385
+ */
386
+ readonly bundlerOptions?: javascript.BundlerOptions;
387
+ /**
388
+ * Options for PR build workflow.
389
+ * @stability experimental
390
+ */
391
+ readonly buildWorkflowOptions?: javascript.BuildWorkflowOptions;
392
+ /**
393
+ * Define a GitHub workflow for building PRs.
394
+ * @default - true if not a subproject
395
+ * @stability experimental
396
+ */
397
+ readonly buildWorkflow?: boolean;
398
+ /**
399
+ * Biome options.
400
+ * @default - default options
401
+ * @stability experimental
402
+ */
403
+ readonly biomeOptions?: javascript.BiomeOptions;
404
+ /**
405
+ * Automatically approve deps upgrade PRs, allowing them to be merged by mergify (if configued).
406
+ * Throw if set to true but `autoApproveOptions` are not defined.
407
+ * @default - true
408
+ * @stability experimental
409
+ */
410
+ readonly autoApproveUpgrades?: boolean;
411
+ /**
412
+ * Security audit options.
413
+ * @default - default options
414
+ * @stability experimental
415
+ */
416
+ readonly auditDepsOptions?: javascript.AuditOptions;
417
+ /**
418
+ * Run security audit on dependencies.
419
+ * When enabled, creates an "audit" task that checks for known security vulnerabilities
420
+ * in dependencies. By default, runs during every build and checks for "high" severity
421
+ * vulnerabilities or above in all dependencies (including dev dependencies).
422
+ * @default false
423
+ * @stability experimental
424
+ */
425
+ readonly auditDeps?: boolean;
426
+ /**
427
+ * A directory which will contain build artifacts.
428
+ * @default "dist"
429
+ * @stability experimental
430
+ */
431
+ readonly artifactsDirectory?: string;
432
+ /**
433
+ * The name of the main release branch.
434
+ * @default "main"
435
+ * @stability experimental
436
+ */
437
+ readonly defaultReleaseBranch: string;
438
+ /**
439
+ * Github Runner Group selection options.
440
+ * @stability experimental
441
+ * @description Defines a target Runner Group by name and/or labels
442
+ * @throws {Error} if both `runsOn` and `runsOnGroup` are specified
443
+ */
444
+ readonly workflowRunsOnGroup?: GroupRunnerOptions;
445
+ /**
446
+ * Github Runner selection labels.
447
+ * @default ["ubuntu-latest"]
448
+ * @stability experimental
449
+ * @description Defines a target Runner by labels
450
+ * @throws {Error} if both `runsOn` and `runsOnGroup` are specified
451
+ */
452
+ readonly workflowRunsOn?: Array<string>;
453
+ /**
454
+ * Container image to use for GitHub workflows.
455
+ * @default - default image
456
+ * @stability experimental
457
+ */
458
+ readonly workflowContainerImage?: string;
459
+ /**
460
+ * Custom configuration used when creating changelog with commit-and-tag-version package.
461
+ * Given values either append to default configuration or overwrite values in it.
462
+ * @default - standard configuration applicable for GitHub repositories
463
+ * @stability experimental
464
+ */
465
+ readonly versionrcOptions?: Record<string, any>;
466
+ /**
467
+ * A set of workflow steps to execute in order to setup the workflow container.
468
+ * @stability experimental
469
+ */
470
+ readonly releaseWorkflowSetupSteps?: Array<github.workflows.JobStep>;
471
+ /**
472
+ * The name of the default release workflow.
473
+ * @default "release"
474
+ * @stability experimental
475
+ */
476
+ readonly releaseWorkflowName?: string;
477
+ /**
478
+ * Build environment variables for release workflows.
479
+ * @default {}
480
+ * @stability experimental
481
+ */
482
+ readonly releaseWorkflowEnv?: Record<string, string>;
483
+ /**
484
+ * The release trigger to use.
485
+ * @default - Continuous releases (`ReleaseTrigger.continuous()`)
486
+ * @stability experimental
487
+ */
488
+ readonly releaseTrigger?: release.ReleaseTrigger;
489
+ /**
490
+ * Automatically add the given prefix to release tags. Useful if you are releasing on multiple branches with overlapping version numbers.
491
+ * Note: this prefix is used to detect the latest tagged version
492
+ * when bumping, so if you change this on a project with an existing version
493
+ * history, you may need to manually tag your latest release
494
+ * with the new prefix.
495
+ * @default "v"
496
+ * @stability experimental
497
+ */
498
+ readonly releaseTagPrefix?: string;
499
+ /**
500
+ * The label to apply to issues indicating publish failures.
501
+ * Only applies if `releaseFailureIssue` is true.
502
+ * @default "failed-release"
503
+ * @stability experimental
504
+ */
505
+ readonly releaseFailureIssueLabel?: string;
506
+ /**
507
+ * Create a github issue on every failed publishing task.
508
+ * @default false
509
+ * @stability experimental
510
+ */
511
+ readonly releaseFailureIssue?: boolean;
512
+ /**
513
+ * The GitHub Actions environment used for the release.
514
+ * This can be used to add an explicit approval step to the release
515
+ * or limit who can initiate a release through environment protection rules.
516
+ *
517
+ * When multiple artifacts are released, the environment can be overwritten
518
+ * on a per artifact basis.
519
+ * @default - no environment used, unless set at the artifact level
520
+ * @stability experimental
521
+ */
522
+ readonly releaseEnvironment?: string;
523
+ /**
524
+ * Defines additional release branches.
525
+ * A workflow will be created for each
526
+ * release branch which will publish releases from commits in this branch.
527
+ * Each release branch _must_ be assigned a major version number which is used
528
+ * to enforce that versions published from that branch always use that major
529
+ * version. If multiple branches are used, the `majorVersion` field must also
530
+ * be provided for the default branch.
531
+ * @default - no additional branches are used for release. you can use
532
+ `addBranch()` to add additional branches.
533
+ * @stability experimental
534
+ */
535
+ readonly releaseBranches?: Record<string, release.BranchOptions>;
536
+ /**
537
+ * Find commits that should be considered releasable Used to decide if a release is required.
538
+ * @default ReleasableCommits.everyCommit()
539
+ * @stability experimental
540
+ */
541
+ readonly releasableCommits?: ReleasableCommits;
542
+ /**
543
+ * Define publishing tasks that can be executed manually as well as workflows.
544
+ * Normally, publishing only happens within automated workflows. Enable this
545
+ * in order to create a publishing task for each publishing activity.
546
+ * @default false
547
+ * @stability experimental
548
+ */
549
+ readonly publishTasks?: boolean;
550
+ /**
551
+ * Instead of actually publishing to package managers, just print the publishing command.
552
+ * @default false
553
+ * @stability experimental
554
+ */
555
+ readonly publishDryRun?: boolean;
556
+ /**
557
+ * Bump versions from the default branch as pre-releases (e.g. "beta", "alpha", "pre").
558
+ * @default - normal semantic versions
559
+ * @stability experimental
560
+ */
561
+ readonly prerelease?: string;
562
+ /**
563
+ * Steps to execute after build as part of the release workflow.
564
+ * @default []
565
+ * @stability experimental
566
+ */
567
+ readonly postBuildSteps?: Array<github.workflows.JobStep>;
568
+ /**
569
+ * The npmDistTag to use when publishing from the default branch.
570
+ * To set the npm dist-tag for release branches, set the `npmDistTag` property
571
+ * for each branch.
572
+ * @default "latest"
573
+ * @stability experimental
574
+ */
575
+ readonly npmDistTag?: string;
576
+ /**
577
+ * A shell command to control the next version to release.
578
+ * If present, this shell command will be run before the bump is executed, and
579
+ * it determines what version to release. It will be executed in the following
580
+ * environment:
581
+ *
582
+ * - Working directory: the project directory.
583
+ * - `$VERSION`: the current version. Looks like `1.2.3`.
584
+ * - `$LATEST_TAG`: the most recent tag. Looks like `prefix-v1.2.3`, or may be unset.
585
+ * - `$SUGGESTED_BUMP`: the suggested bump action based on commits. One of `major|minor|patch|none`.
586
+ *
587
+ * The command should print one of the following to `stdout`:
588
+ *
589
+ * - Nothing: the next version number will be determined based on commit history.
590
+ * - `x.y.z`: the next version number will be `x.y.z`.
591
+ * - `major|minor|patch`: the next version number will be the current version number
592
+ * with the indicated component bumped.
593
+ *
594
+ * This setting cannot be specified together with `minMajorVersion`; the invoked
595
+ * script can be used to achieve the effects of `minMajorVersion`.
596
+ * @default - The next version will be determined based on the commit history and project settings.
597
+ * @stability experimental
598
+ */
599
+ readonly nextVersionCommand?: string;
600
+ /**
601
+ * Minimal Major version to release.
602
+ * This can be useful to set to 1, as breaking changes before the 1.x major
603
+ * release are not incrementing the major version number.
604
+ *
605
+ * Can not be set together with `majorVersion`.
606
+ * @default - No minimum version is being enforced
607
+ * @stability experimental
608
+ */
609
+ readonly minMajorVersion?: number;
610
+ /**
611
+ * Major version to release from the default branch.
612
+ * If this is specified, we bump the latest version of this major version line.
613
+ * If not specified, we bump the global latest version.
614
+ * @default - Major version is not enforced.
615
+ * @stability experimental
616
+ */
617
+ readonly majorVersion?: number;
618
+ /**
619
+ * Version requirement of `publib` which is used to publish modules to npm.
620
+ * @default "latest"
621
+ * @stability experimental
622
+ */
623
+ readonly jsiiReleaseVersion?: string;
624
+ /**
625
+ * The `commit-and-tag-version` compatible package used to bump the package version, as a dependency string.
626
+ * This can be any compatible package version, including the deprecated `standard-version@9`.
627
+ * @default - A recent version of "commit-and-tag-version"
628
+ * @stability experimental
629
+ */
630
+ readonly bumpPackage?: string;
631
+ /**
632
+ * Options for Yarn Berry.
633
+ * @default - Yarn Berry v4 with all default options
634
+ * @stability experimental
635
+ */
636
+ readonly yarnBerryOptions?: javascript.YarnBerryOptions;
637
+ /**
638
+ * Package's Stability.
639
+ * @stability experimental
640
+ */
641
+ readonly stability?: string;
642
+ /**
643
+ * Options for privately hosted scoped packages.
644
+ * @default - fetch all scoped packages from the public npm registry
645
+ * @stability experimental
646
+ */
647
+ readonly scopedPackagesOptions?: Array<javascript.ScopedPackagesOptions>;
648
+ /**
649
+ * If the package.json for your package is not in the root directory (for example if it is part of a monorepo), you can specify the directory in which it lives.
650
+ * @stability experimental
651
+ */
652
+ readonly repositoryDirectory?: string;
653
+ /**
654
+ * The repository is the location where the actual code for your package lives.
655
+ * See https://classic.yarnpkg.com/en/docs/package-json/#toc-repository
656
+ * @stability experimental
657
+ */
658
+ readonly repository?: string;
659
+ /**
660
+ * The version of PNPM to use if using PNPM as a package manager.
661
+ * @default "9"
662
+ * @stability experimental
663
+ */
664
+ readonly pnpmVersion?: string;
665
+ /**
666
+ * Peer dependencies for this module.
667
+ * Dependencies listed here are required to
668
+ * be installed (and satisfied) by the _consumer_ of this library. Using peer
669
+ * dependencies allows you to ensure that only a single module of a certain
670
+ * library exists in the `node_modules` tree of your consumers.
671
+ *
672
+ * Note that prior to npm@7, peer dependencies are _not_ automatically
673
+ * installed, which means that adding peer dependencies to a library will be a
674
+ * breaking change for your customers.
675
+ *
676
+ * Unless `peerDependencyOptions.pinnedDevDependency` is disabled (it is
677
+ * enabled by default), projen will automatically add a dev dependency with a
678
+ * pinned version for each peer dependency. This will ensure that you build &
679
+ * test your module against the lowest peer version required.
680
+ * @default []
681
+ * @stability experimental
682
+ */
683
+ readonly peerDeps?: Array<string>;
684
+ /**
685
+ * Options for `peerDeps`.
686
+ * @stability experimental
687
+ */
688
+ readonly peerDependencyOptions?: javascript.PeerDependencyOptions;
689
+ /**
690
+ * The "name" in package.json.
691
+ * @default - defaults to project name
692
+ * @stability experimental
693
+ * @featured true
694
+ */
695
+ readonly packageName?: string;
696
+ /**
697
+ * The Node Package Manager used to execute scripts.
698
+ * @default NodePackageManager.YARN_CLASSIC
699
+ * @stability experimental
700
+ */
701
+ readonly packageManager?: javascript.NodePackageManager;
702
+ /**
703
+ * Use trusted publishing for publishing to npmjs.com Needs to be pre-configured on npm.js to work.
704
+ * @default - false
705
+ * @stability experimental
706
+ */
707
+ readonly npmTrustedPublishing?: boolean;
708
+ /**
709
+ * GitHub secret which contains the NPM token to use when publishing packages.
710
+ * @default "NPM_TOKEN"
711
+ * @stability experimental
712
+ */
713
+ readonly npmTokenSecret?: string;
714
+ /**
715
+ * The base URL of the npm package registry.
716
+ * Must be a URL (e.g. start with "https://" or "http://")
717
+ * @default "https://registry.npmjs.org"
718
+ * @stability experimental
719
+ */
720
+ readonly npmRegistryUrl?: string;
721
+ /**
722
+ * Should provenance statements be generated when the package is published.
723
+ * A supported package manager is required to publish a package with npm provenance statements and
724
+ * you will need to use a supported CI/CD provider.
725
+ *
726
+ * Note that the projen `Release` and `Publisher` components are using `publib` to publish packages,
727
+ * which is using npm internally and supports provenance statements independently of the package manager used.
728
+ * @default - true for public packages, false otherwise
729
+ * @stability experimental
730
+ */
731
+ readonly npmProvenance?: boolean;
732
+ /**
733
+ * Access level of the npm package.
734
+ * @default - for scoped packages (e.g. `foo@bar`), the default is
735
+ `NpmAccess.RESTRICTED`, for non-scoped packages, the default is
736
+ `NpmAccess.PUBLIC`.
737
+ * @stability experimental
738
+ */
739
+ readonly npmAccess?: javascript.NpmAccess;
740
+ /**
741
+ * The minimum node version required by this package to function. Most projects should not use this option.
742
+ * The value indicates that the package is incompatible with any older versions of node.
743
+ * This requirement is enforced via the engines field.
744
+ *
745
+ * You will normally not need to set this option, even if your package is incompatible with EOL versions of node.
746
+ * Consider this option only if your package depends on a specific feature, that is not available in other LTS versions.
747
+ * Setting this option has very high impact on the consumers of your package,
748
+ * as package managers will actively prevent usage with node versions you have marked as incompatible.
749
+ *
750
+ * To change the node version of your CI/CD workflows, use `workflowNodeVersion`.
751
+ * @default - no minimum version is enforced
752
+ * @stability experimental
753
+ */
754
+ readonly minNodeVersion?: string;
755
+ /**
756
+ * The maximum node version supported by this package. Most projects should not use this option.
757
+ * The value indicates that the package is incompatible with any newer versions of node.
758
+ * This requirement is enforced via the engines field.
759
+ *
760
+ * You will normally not need to set this option.
761
+ * Consider this option only if your package is known to not function with newer versions of node.
762
+ * @default - no maximum version is enforced
763
+ * @stability experimental
764
+ */
765
+ readonly maxNodeVersion?: string;
766
+ /**
767
+ * Indicates if a license should be added.
768
+ * @default true
769
+ * @stability experimental
770
+ */
771
+ readonly licensed?: boolean;
772
+ /**
773
+ * License's SPDX identifier.
774
+ * See https://github.com/projen/projen/tree/main/license-text for a list of supported licenses.
775
+ * Use the `licensed` option if you want to no license to be specified.
776
+ * @default "Apache-2.0"
777
+ * @stability experimental
778
+ */
779
+ readonly license?: string;
780
+ /**
781
+ * Keywords to include in `package.json`.
782
+ * @stability experimental
783
+ */
784
+ readonly keywords?: Array<string>;
785
+ /**
786
+ * Package's Homepage / Website.
787
+ * @stability experimental
788
+ */
789
+ readonly homepage?: string;
790
+ /**
791
+ * Module entrypoint (`main` in `package.json`).
792
+ * Set to an empty string to not include `main` in your package.json
793
+ * @default "lib/index.js"
794
+ * @stability experimental
795
+ */
796
+ readonly entrypoint?: string;
797
+ /**
798
+ * Build dependencies for this module.
799
+ * These dependencies will only be
800
+ * available in your build environment but will not be fetched when this
801
+ * module is consumed.
802
+ *
803
+ * The recommendation is to only specify the module name here (e.g.
804
+ * `express`). This will behave similar to `yarn add` or `npm install` in the
805
+ * sense that it will add the module as a dependency to your `package.json`
806
+ * file with the latest version (`^`). You can specify semver requirements in
807
+ * the same syntax passed to `npm i` or `yarn add` (e.g. `express@^2`) and
808
+ * this will be what you `package.json` will eventually include.
809
+ * @default []
810
+ * @stability experimental
811
+ * @featured true
812
+ */
813
+ readonly devDeps?: Array<string>;
814
+ /**
815
+ * The description is just a string that helps people understand the purpose of the package.
816
+ * It can be used when searching for packages in a package manager as well.
817
+ * See https://classic.yarnpkg.com/en/docs/package-json/#toc-description
818
+ * @stability experimental
819
+ * @featured true
820
+ */
821
+ readonly description?: string;
822
+ /**
823
+ * Runtime dependencies of this module.
824
+ * The recommendation is to only specify the module name here (e.g.
825
+ * `express`). This will behave similar to `yarn add` or `npm install` in the
826
+ * sense that it will add the module as a dependency to your `package.json`
827
+ * file with the latest version (`^`). You can specify semver requirements in
828
+ * the same syntax passed to `npm i` or `yarn add` (e.g. `express@^2`) and
829
+ * this will be what you `package.json` will eventually include.
830
+ * @default []
831
+ * @stability experimental
832
+ * @featured true
833
+ */
834
+ readonly deps?: Array<string>;
835
+ /**
836
+ * Options for npm packages using AWS CodeArtifact.
837
+ * This is required if publishing packages to, or installing scoped packages from AWS CodeArtifact
838
+ * @default - undefined
839
+ * @stability experimental
840
+ */
841
+ readonly codeArtifactOptions?: javascript.CodeArtifactOptions;
842
+ /**
843
+ * The version of Bun to use if using Bun as a package manager.
844
+ * @default "latest"
845
+ * @stability experimental
846
+ */
847
+ readonly bunVersion?: string;
848
+ /**
849
+ * List of dependencies to bundle into this module.
850
+ * These modules will be
851
+ * added both to the `dependencies` section and `bundledDependencies` section of
852
+ * your `package.json`.
853
+ *
854
+ * The recommendation is to only specify the module name here (e.g.
855
+ * `express`). This will behave similar to `yarn add` or `npm install` in the
856
+ * sense that it will add the module as a dependency to your `package.json`
857
+ * file with the latest version (`^`). You can specify semver requirements in
858
+ * the same syntax passed to `npm i` or `yarn add` (e.g. `express@^2`) and
859
+ * this will be what you `package.json` will eventually include.
860
+ * @stability experimental
861
+ */
862
+ readonly bundledDeps?: Array<string>;
863
+ /**
864
+ * The url to your project's issue tracker.
865
+ * @stability experimental
866
+ */
867
+ readonly bugsUrl?: string;
868
+ /**
869
+ * The email address to which issues should be reported.
870
+ * @stability experimental
871
+ */
872
+ readonly bugsEmail?: string;
873
+ /**
874
+ * Binary programs vended with your module.
875
+ * You can use this option to add/customize how binaries are represented in
876
+ * your `package.json`, but unless `autoDetectBin` is `false`, every
877
+ * executable file under `bin` will automatically be added to this section.
878
+ * @stability experimental
879
+ */
880
+ readonly bin?: Record<string, string>;
881
+ /**
882
+ * Automatically add all executables under the `bin` directory to your `package.json` file under the `bin` section.
883
+ * @default true
884
+ * @stability experimental
885
+ */
886
+ readonly autoDetectBin?: boolean;
887
+ /**
888
+ * Author's URL / Website.
889
+ * @stability experimental
890
+ */
891
+ readonly authorUrl?: string;
892
+ /**
893
+ * Is the author an organization.
894
+ * @stability experimental
895
+ */
896
+ readonly authorOrganization?: boolean;
897
+ /**
898
+ * Author's name.
899
+ * @stability experimental
900
+ */
901
+ readonly authorName?: string;
902
+ /**
903
+ * Author's e-mail.
904
+ * @stability experimental
905
+ */
906
+ readonly authorEmail?: string;
907
+ /**
908
+ * Allow the project to include `peerDependencies` and `bundledDependencies`.
909
+ * This is normally only allowed for libraries. For apps, there's no meaning
910
+ * for specifying these.
911
+ * @default true
912
+ * @stability experimental
913
+ */
914
+ readonly allowLibraryDependencies?: boolean;
915
+ /**
916
+ * Enable VSCode integration.
917
+ * Enabled by default for root projects. Disabled for non-root projects.
918
+ * @default true
919
+ * @stability experimental
920
+ */
921
+ readonly vscode?: boolean;
922
+ /**
923
+ * Auto-close stale issues and pull requests.
924
+ * To disable set `stale` to `false`.
925
+ * @default - see defaults in `StaleOptions`
926
+ * @stability experimental
927
+ */
928
+ readonly staleOptions?: github.StaleOptions;
929
+ /**
930
+ * Auto-close of stale issues and pull request.
931
+ * See `staleOptions` for options.
932
+ * @default false
933
+ * @stability experimental
934
+ */
935
+ readonly stale?: boolean;
936
+ /**
937
+ * The README setup.
938
+ * @default - { filename: 'README.md', contents: '# replace this' }
939
+ * @stability experimental
940
+ */
941
+ readonly readme?: SampleReadmeProps;
942
+ /**
943
+ * Choose a method of providing GitHub API access for projen workflows.
944
+ * @default - use a personal access token named PROJEN_GITHUB_TOKEN
945
+ * @stability experimental
946
+ */
947
+ readonly projenCredentials?: github.GithubCredentials;
948
+ /**
949
+ * Add a Gitpod development environment.
950
+ * @default false
951
+ * @stability experimental
952
+ */
953
+ readonly gitpod?: boolean;
954
+ /**
955
+ * Options for GitHub integration.
956
+ * @default - see GitHubOptions
957
+ * @stability experimental
958
+ */
959
+ readonly githubOptions?: github.GitHubOptions;
960
+ /**
961
+ * Enable GitHub integration.
962
+ * Enabled by default for root projects. Disabled for non-root projects.
963
+ * @default true
964
+ * @stability experimental
965
+ */
966
+ readonly github?: boolean;
967
+ /**
968
+ * Add a VSCode development environment (used for GitHub Codespaces).
969
+ * @default false
970
+ * @stability experimental
971
+ */
972
+ readonly devContainer?: boolean;
973
+ /**
974
+ * Add a `clobber` task which resets the repo to origin.
975
+ * @default - true, but false for subprojects
976
+ * @stability experimental
977
+ */
978
+ readonly clobber?: boolean;
979
+ /**
980
+ * Configure options for automatic merging on GitHub.
981
+ * Has no effect if
982
+ * `github.mergify` or `autoMerge` is set to false.
983
+ * @default - see defaults in `AutoMergeOptions`
984
+ * @stability experimental
985
+ */
986
+ readonly autoMergeOptions?: github.AutoMergeOptions;
987
+ /**
988
+ * Enable automatic merging on GitHub.
989
+ * Has no effect if `github.mergify`
990
+ * is set to false.
991
+ * @default true
992
+ * @stability experimental
993
+ */
994
+ readonly autoMerge?: boolean;
995
+ /**
996
+ * Enable and configure the 'auto approve' workflow.
997
+ * @default - auto approve is disabled
998
+ * @stability experimental
999
+ */
1000
+ readonly autoApproveOptions?: github.AutoApproveOptions;
1001
+ /**
1002
+ * Options for renovatebot.
1003
+ * @default - default options
1004
+ * @stability experimental
1005
+ */
1006
+ readonly renovatebotOptions?: RenovatebotOptions;
1007
+ /**
1008
+ * Use renovatebot to handle dependency upgrades.
1009
+ * @default false
1010
+ * @stability experimental
1011
+ */
1012
+ readonly renovatebot?: boolean;
1013
+ /**
1014
+ * Options for .projenrc.json.
1015
+ * @default - default options
1016
+ * @stability experimental
1017
+ */
1018
+ readonly projenrcJsonOptions?: ProjenrcJsonOptions;
1019
+ /**
1020
+ * Generate (once) .projenrc.json (in JSON). Set to `false` in order to disable .projenrc.json generation.
1021
+ * @default false
1022
+ * @stability experimental
1023
+ */
1024
+ readonly projenrcJson?: boolean;
1025
+ /**
1026
+ * The shell command to use in order to run the projen CLI.
1027
+ * Can be used to customize in special environments.
1028
+ * @default "npx projen"
1029
+ * @stability experimental
1030
+ */
1031
+ readonly projenCommand?: string;
1032
+ /**
1033
+ * The parent project, if this project is part of a bigger project.
1034
+ * @stability experimental
1035
+ */
1036
+ readonly parent?: Project;
1037
+ /**
1038
+ * The root directory of the project.
1039
+ * Relative to this directory, all files are synthesized.
1040
+ *
1041
+ * If this project has a parent, this directory is relative to the parent
1042
+ * directory and it cannot be the same as the parent or any of it's other
1043
+ * subprojects.
1044
+ * @default "."
1045
+ * @stability experimental
1046
+ */
1047
+ readonly outdir?: string;
1048
+ /**
1049
+ * Configure logging options such as verbosity.
1050
+ * @default {}
1051
+ * @stability experimental
1052
+ */
1053
+ readonly logging?: LoggerOptions;
1054
+ /**
1055
+ * Configuration options for git.
1056
+ * @stability experimental
1057
+ */
1058
+ readonly gitOptions?: GitOptions;
1059
+ /**
1060
+ * Configuration options for .gitignore file.
1061
+ * @stability experimental
1062
+ */
1063
+ readonly gitIgnoreOptions?: IgnoreFileOptions;
1064
+ /**
1065
+ * Whether to commit the managed files by default.
1066
+ * @default true
1067
+ * @stability experimental
1068
+ */
1069
+ readonly commitGenerated?: boolean;
1070
+ /**
1071
+ * This is the name of your project.
1072
+ * @default $BASEDIR
1073
+ * @stability experimental
1074
+ * @featured true
1075
+ */
1076
+ readonly name: string;
1077
+ /**
1078
+ * The Vitest configuration (when enabled).
1079
+ * @default - default Vitest configuration
1080
+ */
1081
+ readonly vitestOptions?: VitestOptions;
1082
+ /**
1083
+ * Enable testing with Vitest.
1084
+ * @default true
1085
+ */
1086
+ readonly vitest?: boolean;
1087
+ /**
1088
+ * Create mise.toml with project Node.js version
1089
+ * @default true
1090
+ */
1091
+ readonly mise?: boolean;
1092
+ }