@codedrifters/configulator 0.0.426 → 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 +13 -2
- package/lib/index.d.ts +13 -2
- package/lib/index.js +10 -20
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +10 -20
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -12790,8 +12790,8 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
12790
12790
|
* Steps for a target's optional `cdk diff` job.
|
|
12791
12791
|
*
|
|
12792
12792
|
* Mirrors {@link deploySteps}' toolchain and credential setup — same pnpm /
|
|
12793
|
-
* Node setup, same version-pinned `aws-cdk`
|
|
12794
|
-
*
|
|
12793
|
+
* Node setup, same version-pinned `aws-cdk` CLI, same OIDC role — so a diff
|
|
12794
|
+
* is computed by the same CLI that will run the deploy.
|
|
12795
12795
|
*
|
|
12796
12796
|
* The `cdk diff` flags come from the {@link CdkCli} precedence chain via
|
|
12797
12797
|
* `diffOptionsFor(target)`, so `method`, `securityOnly`, `fail`, and the rest
|
|
@@ -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
|
@@ -12839,8 +12839,8 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
12839
12839
|
* Steps for a target's optional `cdk diff` job.
|
|
12840
12840
|
*
|
|
12841
12841
|
* Mirrors {@link deploySteps}' toolchain and credential setup — same pnpm /
|
|
12842
|
-
* Node setup, same version-pinned `aws-cdk`
|
|
12843
|
-
*
|
|
12842
|
+
* Node setup, same version-pinned `aws-cdk` CLI, same OIDC role — so a diff
|
|
12843
|
+
* is computed by the same CLI that will run the deploy.
|
|
12844
12844
|
*
|
|
12845
12845
|
* The `cdk diff` flags come from the {@link CdkCli} precedence chain via
|
|
12846
12846
|
* `diffOptionsFor(target)`, so `method`, `securityOnly`, `fail`, and the rest
|
|
@@ -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
|
@@ -42763,14 +42763,6 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen26.Compone
|
|
|
42763
42763
|
return [
|
|
42764
42764
|
...this.setupPnpm(),
|
|
42765
42765
|
...this.setupNode(),
|
|
42766
|
-
/**
|
|
42767
|
-
* Install CDK, pinned to the same version that synthesized the cloud
|
|
42768
|
-
* assembly being deployed. See {@link CdkCli.cliVersion}.
|
|
42769
|
-
*/
|
|
42770
|
-
{
|
|
42771
|
-
name: "Install CDK",
|
|
42772
|
-
run: `pnpm add "aws-cdk@${cdkCli.cliVersion}"`
|
|
42773
|
-
},
|
|
42774
42766
|
/**
|
|
42775
42767
|
* Configure AWS creds.
|
|
42776
42768
|
*/
|
|
@@ -42844,8 +42836,8 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen26.Compone
|
|
|
42844
42836
|
* Steps for a target's optional `cdk diff` job.
|
|
42845
42837
|
*
|
|
42846
42838
|
* Mirrors {@link deploySteps}' toolchain and credential setup — same pnpm /
|
|
42847
|
-
* Node setup, same version-pinned `aws-cdk`
|
|
42848
|
-
*
|
|
42839
|
+
* Node setup, same version-pinned `aws-cdk` CLI, same OIDC role — so a diff
|
|
42840
|
+
* is computed by the same CLI that will run the deploy.
|
|
42849
42841
|
*
|
|
42850
42842
|
* The `cdk diff` flags come from the {@link CdkCli} precedence chain via
|
|
42851
42843
|
* `diffOptionsFor(target)`, so `method`, `securityOnly`, `fail`, and the rest
|
|
@@ -42873,14 +42865,6 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen26.Compone
|
|
|
42873
42865
|
return [
|
|
42874
42866
|
...this.setupPnpm(),
|
|
42875
42867
|
...this.setupNode(),
|
|
42876
|
-
/**
|
|
42877
|
-
* Install CDK, pinned to the same version that synthesized the cloud
|
|
42878
|
-
* assembly being diffed. See {@link CdkCli.cliVersion}.
|
|
42879
|
-
*/
|
|
42880
|
-
{
|
|
42881
|
-
name: "Install CDK",
|
|
42882
|
-
run: `pnpm add "aws-cdk@${cdkCli.cliVersion}"`
|
|
42883
|
-
},
|
|
42884
42868
|
/**
|
|
42885
42869
|
* Configure AWS creds.
|
|
42886
42870
|
*/
|
|
@@ -43511,12 +43495,18 @@ var AwsCdkProject = class extends import_projen28.awscdk.AwsCdkTypeScriptApp {
|
|
|
43511
43495
|
const targetsForAutoDerive = AwsDeploymentConfig.of(this)?.awsDeploymentTargets ?? [];
|
|
43512
43496
|
const deployWorkflows = options.deployWorkflows ?? Array.from(new Set(targetsForAutoDerive.map((t) => t.awsStageType))).map(
|
|
43513
43497
|
(awsStageType) => {
|
|
43498
|
+
const diff = options.diff ? { diff: options.diff } : {};
|
|
43514
43499
|
if (options.sharedBuildWorkflow) {
|
|
43515
|
-
return {
|
|
43500
|
+
return {
|
|
43501
|
+
awsStageType,
|
|
43502
|
+
buildWorkflow: options.sharedBuildWorkflow,
|
|
43503
|
+
...diff
|
|
43504
|
+
};
|
|
43516
43505
|
}
|
|
43517
43506
|
return {
|
|
43518
43507
|
awsStageType,
|
|
43519
|
-
...options.buildWorkflowOptions ? { buildWorkflowOptions: options.buildWorkflowOptions } : {}
|
|
43508
|
+
...options.buildWorkflowOptions ? { buildWorkflowOptions: options.buildWorkflowOptions } : {},
|
|
43509
|
+
...diff
|
|
43520
43510
|
};
|
|
43521
43511
|
}
|
|
43522
43512
|
);
|