@codedrifters/configulator 0.0.437 → 0.0.438

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/lib/index.d.mts CHANGED
@@ -14126,6 +14126,28 @@ interface AwsCdkProjectOptions extends Omit<awscdk.AwsCdkTypeScriptAppOptions, "
14126
14126
  * @default - the parent monorepo's catalog pin for `constructs`
14127
14127
  */
14128
14128
  readonly constructsVersion?: string;
14129
+ /**
14130
+ * Options for the `CdkCli` component that every `cdk` invocation this
14131
+ * project renders flows through — per-stage command defaults, per-account
14132
+ * overrides, and the pinned CLI version.
14133
+ *
14134
+ * The component has to be seeded here rather than constructed afterwards.
14135
+ * This constructor creates an `AwsDeploymentConfig`, which auto-creates a
14136
+ * default `CdkCli` when the project has none, and `CdkCli.of()` resolves to
14137
+ * the *first* matching component — so a `new CdkCli(project, options)` built
14138
+ * once the constructor has returned is silently unreachable: no error, no
14139
+ * warning, and the generated workflows render as if nothing was passed.
14140
+ *
14141
+ * Use it to declare a setting once per project instead of repeating it on
14142
+ * every target via `AwsDeploymentTargetOptions.cdkOptions` — for example
14143
+ * pinning `cdk diff --method=change-set` across stages so a diff never
14144
+ * degrades to a template-only comparison and reports it as authoritative.
14145
+ *
14146
+ * @see `docs/src/content/docs/packages/@codedrifters/configulator/cdk-cli.md`
14147
+ * @default - a `CdkCli` carrying no consumer overrides, identical to the one
14148
+ * `AwsDeploymentConfig` would have auto-created
14149
+ */
14150
+ readonly cdkCliOptions?: CdkCliOptions;
14129
14151
  /**
14130
14152
  * AWS deployment targets (dev / stage / prod accounts and regions). Each
14131
14153
  * entry creates an `AwsDeploymentTarget` component on the project.
package/lib/index.d.ts CHANGED
@@ -14175,6 +14175,28 @@ interface AwsCdkProjectOptions extends Omit<awscdk.AwsCdkTypeScriptAppOptions, "
14175
14175
  * @default - the parent monorepo's catalog pin for `constructs`
14176
14176
  */
14177
14177
  readonly constructsVersion?: string;
14178
+ /**
14179
+ * Options for the `CdkCli` component that every `cdk` invocation this
14180
+ * project renders flows through — per-stage command defaults, per-account
14181
+ * overrides, and the pinned CLI version.
14182
+ *
14183
+ * The component has to be seeded here rather than constructed afterwards.
14184
+ * This constructor creates an `AwsDeploymentConfig`, which auto-creates a
14185
+ * default `CdkCli` when the project has none, and `CdkCli.of()` resolves to
14186
+ * the *first* matching component — so a `new CdkCli(project, options)` built
14187
+ * once the constructor has returned is silently unreachable: no error, no
14188
+ * warning, and the generated workflows render as if nothing was passed.
14189
+ *
14190
+ * Use it to declare a setting once per project instead of repeating it on
14191
+ * every target via `AwsDeploymentTargetOptions.cdkOptions` — for example
14192
+ * pinning `cdk diff --method=change-set` across stages so a diff never
14193
+ * degrades to a template-only comparison and reports it as authoritative.
14194
+ *
14195
+ * @see `docs/src/content/docs/packages/@codedrifters/configulator/cdk-cli.md`
14196
+ * @default - a `CdkCli` carrying no consumer overrides, identical to the one
14197
+ * `AwsDeploymentConfig` would have auto-created
14198
+ */
14199
+ readonly cdkCliOptions?: CdkCliOptions;
14178
14200
  /**
14179
14201
  * AWS deployment targets (dev / stage / prod accounts and regions). Each
14180
14202
  * entry creates an `AwsDeploymentTarget` component on the project.
package/lib/index.js CHANGED
@@ -44065,6 +44065,7 @@ var AwsCdkProject = class extends import_projen31.awscdk.AwsCdkTypeScriptApp {
44065
44065
  });
44066
44066
  this.gitignore?.addPatterns(".DS_Store", "test-reports", "cdk.out");
44067
44067
  this.npmignore?.addPatterns("*.spec.*", "*.test.*", "__fixtures__");
44068
+ new CdkCli(this, options.cdkCliOptions ?? {});
44068
44069
  new AwsDeploymentConfig(this);
44069
44070
  (options.deploymentTargets ?? []).forEach(
44070
44071
  (targetOptions) => this.addDeploymentTarget(targetOptions)