@codedrifters/configulator 0.0.427 → 0.0.428
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 +11 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +8 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +8 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -13992,6 +13992,17 @@ interface AwsCdkProjectOptions extends Omit<awscdk.AwsCdkTypeScriptAppOptions, "
|
|
|
13992
13992
|
* build workflow yourself.
|
|
13993
13993
|
*/
|
|
13994
13994
|
readonly deployWorkflows?: Array<DeployWorkflowOptions>;
|
|
13995
|
+
/**
|
|
13996
|
+
* Opt every auto-derived deploy workflow into a `cdk diff` job per target.
|
|
13997
|
+
*
|
|
13998
|
+
* Forwarded onto each workflow derived from `deploymentTargets`. An explicit
|
|
13999
|
+
* `deployWorkflows[].diff` overrides it for that stage, matching the
|
|
14000
|
+
* `buildWorkflowOptions` precedence rule.
|
|
14001
|
+
*
|
|
14002
|
+
* @see `docs/packages/@codedrifters/configulator/workflows/aws-deploy-workflow.md`
|
|
14003
|
+
* @default - no diff jobs are emitted
|
|
14004
|
+
*/
|
|
14005
|
+
readonly diff?: DeployDiffOptions;
|
|
13995
14006
|
/**
|
|
13996
14007
|
* Optional shared `BuildWorkflow` to attach all auto-derived deploy jobs to.
|
|
13997
14008
|
* When set, every workflow generated from `deploymentTargets` re-uses this
|
package/lib/index.d.ts
CHANGED
|
@@ -14041,6 +14041,17 @@ interface AwsCdkProjectOptions extends Omit<awscdk.AwsCdkTypeScriptAppOptions, "
|
|
|
14041
14041
|
* build workflow yourself.
|
|
14042
14042
|
*/
|
|
14043
14043
|
readonly deployWorkflows?: Array<DeployWorkflowOptions>;
|
|
14044
|
+
/**
|
|
14045
|
+
* Opt every auto-derived deploy workflow into a `cdk diff` job per target.
|
|
14046
|
+
*
|
|
14047
|
+
* Forwarded onto each workflow derived from `deploymentTargets`. An explicit
|
|
14048
|
+
* `deployWorkflows[].diff` overrides it for that stage, matching the
|
|
14049
|
+
* `buildWorkflowOptions` precedence rule.
|
|
14050
|
+
*
|
|
14051
|
+
* @see `docs/packages/@codedrifters/configulator/workflows/aws-deploy-workflow.md`
|
|
14052
|
+
* @default - no diff jobs are emitted
|
|
14053
|
+
*/
|
|
14054
|
+
readonly diff?: DeployDiffOptions;
|
|
14044
14055
|
/**
|
|
14045
14056
|
* Optional shared `BuildWorkflow` to attach all auto-derived deploy jobs to.
|
|
14046
14057
|
* When set, every workflow generated from `deploymentTargets` re-uses this
|
package/lib/index.js
CHANGED
|
@@ -43495,12 +43495,18 @@ var AwsCdkProject = class extends import_projen28.awscdk.AwsCdkTypeScriptApp {
|
|
|
43495
43495
|
const targetsForAutoDerive = AwsDeploymentConfig.of(this)?.awsDeploymentTargets ?? [];
|
|
43496
43496
|
const deployWorkflows = options.deployWorkflows ?? Array.from(new Set(targetsForAutoDerive.map((t) => t.awsStageType))).map(
|
|
43497
43497
|
(awsStageType) => {
|
|
43498
|
+
const diff = options.diff ? { diff: options.diff } : {};
|
|
43498
43499
|
if (options.sharedBuildWorkflow) {
|
|
43499
|
-
return {
|
|
43500
|
+
return {
|
|
43501
|
+
awsStageType,
|
|
43502
|
+
buildWorkflow: options.sharedBuildWorkflow,
|
|
43503
|
+
...diff
|
|
43504
|
+
};
|
|
43500
43505
|
}
|
|
43501
43506
|
return {
|
|
43502
43507
|
awsStageType,
|
|
43503
|
-
...options.buildWorkflowOptions ? { buildWorkflowOptions: options.buildWorkflowOptions } : {}
|
|
43508
|
+
...options.buildWorkflowOptions ? { buildWorkflowOptions: options.buildWorkflowOptions } : {},
|
|
43509
|
+
...diff
|
|
43504
43510
|
};
|
|
43505
43511
|
}
|
|
43506
43512
|
);
|