@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.mjs
CHANGED
|
@@ -42393,14 +42393,6 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component22 {
|
|
|
42393
42393
|
return [
|
|
42394
42394
|
...this.setupPnpm(),
|
|
42395
42395
|
...this.setupNode(),
|
|
42396
|
-
/**
|
|
42397
|
-
* Install CDK, pinned to the same version that synthesized the cloud
|
|
42398
|
-
* assembly being deployed. See {@link CdkCli.cliVersion}.
|
|
42399
|
-
*/
|
|
42400
|
-
{
|
|
42401
|
-
name: "Install CDK",
|
|
42402
|
-
run: `pnpm add "aws-cdk@${cdkCli.cliVersion}"`
|
|
42403
|
-
},
|
|
42404
42396
|
/**
|
|
42405
42397
|
* Configure AWS creds.
|
|
42406
42398
|
*/
|
|
@@ -42474,8 +42466,8 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component22 {
|
|
|
42474
42466
|
* Steps for a target's optional `cdk diff` job.
|
|
42475
42467
|
*
|
|
42476
42468
|
* Mirrors {@link deploySteps}' toolchain and credential setup — same pnpm /
|
|
42477
|
-
* Node setup, same version-pinned `aws-cdk`
|
|
42478
|
-
*
|
|
42469
|
+
* Node setup, same version-pinned `aws-cdk` CLI, same OIDC role — so a diff
|
|
42470
|
+
* is computed by the same CLI that will run the deploy.
|
|
42479
42471
|
*
|
|
42480
42472
|
* The `cdk diff` flags come from the {@link CdkCli} precedence chain via
|
|
42481
42473
|
* `diffOptionsFor(target)`, so `method`, `securityOnly`, `fail`, and the rest
|
|
@@ -42503,14 +42495,6 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component22 {
|
|
|
42503
42495
|
return [
|
|
42504
42496
|
...this.setupPnpm(),
|
|
42505
42497
|
...this.setupNode(),
|
|
42506
|
-
/**
|
|
42507
|
-
* Install CDK, pinned to the same version that synthesized the cloud
|
|
42508
|
-
* assembly being diffed. See {@link CdkCli.cliVersion}.
|
|
42509
|
-
*/
|
|
42510
|
-
{
|
|
42511
|
-
name: "Install CDK",
|
|
42512
|
-
run: `pnpm add "aws-cdk@${cdkCli.cliVersion}"`
|
|
42513
|
-
},
|
|
42514
42498
|
/**
|
|
42515
42499
|
* Configure AWS creds.
|
|
42516
42500
|
*/
|
|
@@ -43141,12 +43125,18 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
|
|
|
43141
43125
|
const targetsForAutoDerive = AwsDeploymentConfig.of(this)?.awsDeploymentTargets ?? [];
|
|
43142
43126
|
const deployWorkflows = options.deployWorkflows ?? Array.from(new Set(targetsForAutoDerive.map((t) => t.awsStageType))).map(
|
|
43143
43127
|
(awsStageType) => {
|
|
43128
|
+
const diff = options.diff ? { diff: options.diff } : {};
|
|
43144
43129
|
if (options.sharedBuildWorkflow) {
|
|
43145
|
-
return {
|
|
43130
|
+
return {
|
|
43131
|
+
awsStageType,
|
|
43132
|
+
buildWorkflow: options.sharedBuildWorkflow,
|
|
43133
|
+
...diff
|
|
43134
|
+
};
|
|
43146
43135
|
}
|
|
43147
43136
|
return {
|
|
43148
43137
|
awsStageType,
|
|
43149
|
-
...options.buildWorkflowOptions ? { buildWorkflowOptions: options.buildWorkflowOptions } : {}
|
|
43138
|
+
...options.buildWorkflowOptions ? { buildWorkflowOptions: options.buildWorkflowOptions } : {},
|
|
43139
|
+
...diff
|
|
43150
43140
|
};
|
|
43151
43141
|
}
|
|
43152
43142
|
);
|